Skip to content

Commit

Permalink
fix expand properly
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed May 10, 2024
1 parent c64859f commit d437cd5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const Dialog: React.FC<DialogPropsType> = (props: DialogPropsType) => {
<dialog
{...rest}
open={open}
className={`w-full md:w-11/12 py-10 border border-themed foreground z-20 px-10 max-h-full overflow-auto ${
className={`w-full md:w-11/12 py-10 border border-themed foreground z-20 px-10 overflow-auto md:max-h-none md:overflow-visible ${
className ?? ""
} md:min-w-[600px]`}
style={{
Expand Down
2 changes: 1 addition & 1 deletion src/components/expand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const Expand: React.FC<ExpandProps> = (props: ExpandProps) => {
<>
<Link onClick={() => setOpen(true)}>{props.label}</Link>
{open && (
<Dialog open={open} toggle={() => setOpen(false)}>
<Dialog open={open} toggle={() => setOpen(false)} className="expand">
<div className="pt-10">{props.value}</div>
</Dialog>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/tripletsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const TripletList: React.FC<TripletListProps> = (
props: TripletListProps
) => {
return (
<div className="flex flex-col border-white border p-5 m-3 gap-1 max-h-[400px] overflow-auto">
<div className="flex flex-col border-white border p-5 m-3 gap-1 max-h-[400px] md:max-h-[700px] overflow-auto">
<table>
{props.triplets.map((triplet) => (
<tr key={triplet.id}>
Expand Down
4 changes: 4 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,7 @@ input {
bottom: -6px;
}

.expand {
max-height: 700px !important;
overflow: auto !important;
}

0 comments on commit d437cd5

Please sign in to comment.