Skip to content

Commit

Permalink
Set the buttons to be the same height
Browse files Browse the repository at this point in the history
  • Loading branch information
andychase committed Sep 23, 2024
1 parent 616f4f7 commit f2491c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/Search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Search: FC<Props> = ({ placeholder, searchTerm, onSearch }) => {
return (
<div className="relative flex items-center">
<input
className="w-full flex-1 rounded-md border border-neutral-200 px-4 py-3 pr-10 text-[14px] leading-3 text-black"
className="w-full h-[42px] flex-1 rounded-md border border-neutral-200 px-4 py-3 pr-10 text-[14px] leading-3 text-black"
type="text"
placeholder={t(placeholder) || ''}
value={searchTerm}
Expand Down
4 changes: 2 additions & 2 deletions components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const Sidebar = <T,>({
</div>
<div className="flex items-center">
<button
className="text-sidebar flex w-[190px] flex-shrink-0 cursor-pointer select-none items-center gap-3 rounded-md border border-neutral-200 p-3 text-black transition-colors duration-200 hover:bg-gray-500/10"
className="text-sidebar flex h-[42px] w-[190px] flex-shrink-0 cursor-pointer select-none items-center gap-3 rounded-md border border-neutral-200 p-3 text-black transition-colors duration-200 hover:bg-gray-500/10"
onClick={() => {
handleCreateItem();
handleSearchTerm('');
Expand All @@ -76,7 +76,7 @@ const Sidebar = <T,>({
</button>

<button
className="ml-2 flex flex-shrink-0 cursor-pointer items-center gap-3 rounded-md border border-neutral-200 p-3 text-black transition-colors duration-200 hover:bg-gray-500/10"
className="h-[42px] ml-2 flex flex-shrink-0 cursor-pointer items-center gap-3 rounded-md border border-neutral-200 p-3 text-black transition-colors duration-200 hover:bg-gray-500/10"
onClick={handleCreateFolder}
title="Create Folder"
>
Expand Down

0 comments on commit f2491c6

Please sign in to comment.