Browse Source

Start fixing app height when list is too large.

main
Titouan Rigoudy 4 years ago
parent
commit
8846b914e8
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/components/SearchableList.tsx
  2. +1
    -1
      src/components/SolsticeApp.tsx

+ 1
- 1
src/components/SearchableList.tsx View File

@ -38,7 +38,7 @@ const SearchableList: FC<ListProps<Item>> = ({ component, map }) => {
onChange={onChange}
/>
</form>
<ul className="flex-grow flex flex-col overflow-auto">{children}</ul>
<ul className="flex-1 flex flex-col min-h-0 overflow-auto">{children}</ul>
</div>
);
};


+ 1
- 1
src/components/SolsticeApp.tsx View File

@ -19,7 +19,7 @@ const MainPane: FC = () => {
const { path } = useRouteMatch();
return (
<main className="flex-1">
<main className="flex-1 min-h-0">
<Switch>
<Route path={`${path}rooms`}>
<RoomsPane />


Loading…
Cancel
Save