From c78834aa5bc8697a6f3523a28e08bbaf284c0aa9 Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Tue, 8 Apr 2025 22:27:34 +0300 Subject: [PATCH] B: Fix search bar width --- .../src/components/input/search-bar.tsx | 20 +++++++++---------- rsconcept/frontend/src/index.css | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/rsconcept/frontend/src/components/input/search-bar.tsx b/rsconcept/frontend/src/components/input/search-bar.tsx index e7df4de6..f6d4cf5f 100644 --- a/rsconcept/frontend/src/components/input/search-bar.tsx +++ b/rsconcept/frontend/src/components/input/search-bar.tsx @@ -2,9 +2,6 @@ import clsx from 'clsx'; import { IconSearch } from '@/components/icons'; import { type Styling } from '@/components/props'; - -import { TextInput } from './text-input'; - interface SearchBarProps extends Styling { /** Id of the search bar. */ id?: string; @@ -39,20 +36,23 @@ export function SearchBar({ ...restProps }: SearchBarProps) { return ( -
+
{!noIcon ? ( ) : null} - onChangeQuery?.(event.target.value)} + placeholder={placeholder} />
); diff --git a/rsconcept/frontend/src/index.css b/rsconcept/frontend/src/index.css index d5c95f21..54c7c8ed 100644 --- a/rsconcept/frontend/src/index.css +++ b/rsconcept/frontend/src/index.css @@ -85,7 +85,7 @@ /* ========= shadcn theme ============ */ :root { - --radius: 0.625rem; + /* --radius: 0.625rem; */ --background: oklch(100% 0 0deg); --foreground: oklch(14.5% 0 0deg); @@ -155,10 +155,10 @@ } @theme inline { - --radius-sm: calc(var(--radius) - 4px); + /* --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius); - --radius-xl: calc(var(--radius) + 4px); + --radius-xl: calc(var(--radius) + 4px); */ --color-background: var(--background); --color-foreground: var(--foreground);