From 8089a816adb991a86d307a3874abe0d366e4633a Mon Sep 17 00:00:00 2001 From: wisecolt Date: Fri, 9 Jan 2026 16:52:09 +0300 Subject: [PATCH] =?UTF-8?q?feat(ui):=20select=20bile=C5=9Fenini=20geli?= =?UTF-8?q?=C5=9Ftir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Scroll butonları, metin kısaltma ve genişlik ayarlamaları ekleyerek Select bileşenini daha kullanıcı dostu hale getirildi. TimerPage düzenlemesi yeni özelliklere uyum sağlamak için güncellendi. --- apps/web/src/components/ui/Select.tsx | 75 ++++++++++++++++++++++++--- apps/web/src/pages/TimerPage.tsx | 74 +++++++++++++------------- 2 files changed, 104 insertions(+), 45 deletions(-) diff --git a/apps/web/src/components/ui/Select.tsx b/apps/web/src/components/ui/Select.tsx index d776060..c544e74 100644 --- a/apps/web/src/components/ui/Select.tsx +++ b/apps/web/src/components/ui/Select.tsx @@ -17,6 +17,21 @@ const ChevronDown = ({ className }: { className?: string }) => ( ); +const ChevronUp = ({ className }: { className?: string }) => ( + +); + const Check = ({ className }: { className?: string }) => ( , React.ComponentPropsWithoutRef @@ -45,12 +62,12 @@ export const SelectTrigger = React.forwardRef< - {children} + {children} @@ -58,28 +75,73 @@ export const SelectTrigger = React.forwardRef< )); SelectTrigger.displayName = "SelectTrigger"; +export const SelectScrollUpButton = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + + + +)); +SelectScrollUpButton.displayName = "SelectScrollUpButton"; + +export const SelectScrollDownButton = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + + + +)); +SelectScrollDownButton.displayName = "SelectScrollDownButton"; + export const SelectContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef ->(({ className, children, position = "popper", ...props }, ref) => ( +>(({ className, children, position = "popper", sideOffset = 4, ...props }, ref) => ( - + + {children} + )); SelectContent.displayName = "SelectContent"; +export const SelectSeparator = SelectPrimitive.Separator; + export const SelectItem = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef @@ -87,7 +149,7 @@ export const SelectItem = React.forwardRef< )); SelectItem.displayName = "SelectItem"; - diff --git a/apps/web/src/pages/TimerPage.tsx b/apps/web/src/pages/TimerPage.tsx index 819a05d..c4afeaa 100644 --- a/apps/web/src/pages/TimerPage.tsx +++ b/apps/web/src/pages/TimerPage.tsx @@ -337,44 +337,42 @@ export const TimerPage = () => {
-
- - - Zamanlayıcı Torrentleri - -
- Sıralama - -
+ + + Zamanlayıcı Torrentleri + +
+ Sıralama +