Skip to content

Commit aa685f7

Browse files
committed
fix search input and button on smaller screens
1 parent 266abdc commit aa685f7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

components/dashboard/src/repositories/list/RepositoryTable.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,22 @@ export const RepositoryTable: FC<Props> = ({
4949
return (
5050
<>
5151
{/* Search/Filter bar */}
52-
<div className="flex flex-row flex-wrap justify-between items-center">
53-
<div className="flex flex-row flex-wrap items-center">
52+
<div className="flex flex-col-reverse md:flex-row flex-wrap justify-between items-center gap-2">
53+
<div className="flex flex-row flex-wrap items-center w-full md:w-auto">
5454
{/* TODO: Add search icon on left and decide on pulling Inputs into podkit */}
5555
<TextInput
56-
className="w-80"
56+
className="w-full max-w-none md:w-80"
5757
value={searchTerm}
5858
onChange={onSearchTermChange}
5959
placeholder="Search imported repositories"
6060
/>
6161
{/* TODO: Add prebuild status filter dropdown */}
6262
</div>
6363

64-
<Button onClick={onImport}>Import Repository</Button>
64+
{/* TODO: Consider making all podkit buttons behave this way, full width on small screen */}
65+
<Button className="w-full md:w-auto" onClick={onImport}>
66+
Import Repository
67+
</Button>
6568
</div>
6669
<div className="relative w-full overflow-auto mt-4">
6770
{configurations.length > 0 ? (

0 commit comments

Comments
 (0)