From cd632f295d896100207e1b02bfeb574175c07633 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 20 Apr 2025 23:49:24 +0000 Subject: ui(web): Reduce shadows, lighten some fonts, and a smaller editor. #1261 --- .../bookmarks/BookmarkLayoutAdaptingCard.tsx | 8 ++--- .../components/dashboard/bookmarks/EditorCard.tsx | 13 ++++--- .../web/components/dashboard/bookmarks/TagList.tsx | 4 +-- .../components/dashboard/search/SearchInput.tsx | 2 ++ apps/web/components/dashboard/sidebar/AllLists.tsx | 6 ++-- apps/web/components/ui/info-tooltip.tsx | 2 +- apps/web/components/ui/input.tsx | 42 ++++++++++++++++------ 7 files changed, 53 insertions(+), 24 deletions(-) (limited to 'apps/web/components') diff --git a/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx b/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx index be061148..a0437c71 100644 --- a/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx +++ b/apps/web/components/dashboard/bookmarks/BookmarkLayoutAdaptingCard.tsx @@ -46,7 +46,7 @@ function BottomRow({ }) { return (
-
+
{footer && <>{footer}•} @@ -167,7 +167,7 @@ function GridView({ return (
{ if (demoMode) { return; @@ -218,7 +218,12 @@ export default function EditorCard({ className }: { className?: string }) { /> - + {form.formState.dirtyFields.text ? demoMode ? t("editor.disabled_submissions") diff --git a/apps/web/components/dashboard/bookmarks/TagList.tsx b/apps/web/components/dashboard/bookmarks/TagList.tsx index 49a1156c..593a269b 100644 --- a/apps/web/components/dashboard/bookmarks/TagList.tsx +++ b/apps/web/components/dashboard/bookmarks/TagList.tsx @@ -29,8 +29,8 @@ export default function TagList({ diff --git a/apps/web/components/dashboard/search/SearchInput.tsx b/apps/web/components/dashboard/search/SearchInput.tsx index 5e46fc18..c58542bf 100644 --- a/apps/web/components/dashboard/search/SearchInput.tsx +++ b/apps/web/components/dashboard/search/SearchInput.tsx @@ -6,6 +6,7 @@ import { Input } from "@/components/ui/input"; import { useDoBookmarkSearch } from "@/lib/hooks/bookmark-search"; import { useTranslation } from "@/lib/i18n/client"; import { cn } from "@/lib/utils"; +import { SearchIcon } from "lucide-react"; import { EditListModal } from "../lists/EditListModal"; import QueryExplainerTooltip from "./QueryExplainerTooltip"; @@ -99,6 +100,7 @@ const SearchInput = React.forwardRef< )} -
  • +
  • Lists

    - +
  • diff --git a/apps/web/components/ui/info-tooltip.tsx b/apps/web/components/ui/info-tooltip.tsx index 0254aa80..4dd97199 100644 --- a/apps/web/components/ui/info-tooltip.tsx +++ b/apps/web/components/ui/info-tooltip.tsx @@ -23,7 +23,7 @@ export default function InfoTooltip({ {variant === "tip" ? ( ) : ( diff --git a/apps/web/components/ui/input.tsx b/apps/web/components/ui/input.tsx index 5543446c..09f9def9 100644 --- a/apps/web/components/ui/input.tsx +++ b/apps/web/components/ui/input.tsx @@ -1,20 +1,42 @@ import * as React from "react"; import { cn } from "@/lib/utils"; +import { LucideIcon } from "lucide-react"; -export type InputProps = React.InputHTMLAttributes; +export interface InputProps + extends React.InputHTMLAttributes { + startIcon?: LucideIcon; + endIcon?: LucideIcon; +} const Input = React.forwardRef( - ({ className, type, ...props }, ref) => { + ({ className, type, startIcon, endIcon, ...props }, ref) => { + const StartIcon = startIcon; + const EndIcon = endIcon; + return ( - + {StartIcon && ( +
    + +
    + )} + + {EndIcon && ( +
    + +
    )} - ref={ref} - {...props} - /> +
    ); }, ); -- cgit v1.2.3-70-g09d2