File tree Expand file tree Collapse file tree 14 files changed +115
-79
lines changed
components/Common/Searchbox Expand file tree Collapse file tree 14 files changed +115
-79
lines changed Original file line number Diff line number Diff line change 55 mb-6
66 flex
77 h-full
8+ w-[95% ]
89 flex-1
910 flex-col
1011 items-start
12+ self-center
1113 overflow-auto
1214 px-1;
1315
3941
4042.scrollDownButton {
4143 @apply absolute
42- bottom-28
44+ bottom-36
4345 left-1/2
4446 inline-flex
4547 -translate-x-1/2
4951 bg-neutral-200
5052 p-2
5153 text-neutral-900
52- duration-300
5354 focus:bg-neutral-300
5455 focus:outline-none
5556 motion-safe:transition-colors
57+ lg:bottom-28
5658 dark:bg-neutral-900
5759 dark:text-neutral-200
5860 focus:dark:bg-neutral-800;
Original file line number Diff line number Diff line change 2727.chatSourceLink {
2828 @apply w-3xs
2929 rounded-xl
30- bg-neutral-100
30+ bg-white
3131 px-4
3232 py-2
3333 text-neutral-900
34- duration-300
3534 hover:bg-neutral-200
3635 focus:bg-neutral-200
3736 focus:outline-none
3837 motion-safe:transition-colors
38+ lg:bg-neutral-100
3939 dark:bg-neutral-950
4040 dark:text-neutral-200
4141 hover:dark:bg-neutral-900
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ const Searchbox: FC = () => {
5252 t ( 'components.search.suggestionThree' ) ,
5353 ] }
5454 label = { t ( 'components.search.suggestions' ) }
55+ onClick = { ( ) => setMode ( 'chat' ) }
5556 />
5657 </ SearchResults >
5758 </ div >
Original file line number Diff line number Diff line change 4242 "@opentelemetry/instrumentation" : " ~0.206.0" ,
4343 "@opentelemetry/resources" : " ~1.30.1" ,
4444 "@opentelemetry/sdk-logs" : " ~0.206.0" ,
45- "@orama/core" : " ^1.2.14 " ,
46- "@orama/ui" : " ^1.5.3 " ,
45+ "@orama/core" : " ^1.2.15 " ,
46+ "@orama/ui" : " ^1.5.4 " ,
4747 "@radix-ui/react-tabs" : " ^1.1.13" ,
4848 "@radix-ui/react-tooltip" : " ^1.2.8" ,
4949 "@tailwindcss/postcss" : " ~4.1.17" ,
Original file line number Diff line number Diff line change 3636 },
3737 "dependencies" : {
3838 "@heroicons/react" : " ^2.2.0" ,
39- "@orama/ui" : " ^1.5.2 " ,
39+ "@orama/ui" : " ^1.5.4 " ,
4040 "@radix-ui/react-avatar" : " ^1.1.11" ,
4141 "@radix-ui/react-dialog" : " ^1.1.15" ,
4242 "@radix-ui/react-dropdown-menu" : " ~2.1.16" ,
5353 "tailwindcss" : " catalog:"
5454 },
5555 "devDependencies" : {
56- "@orama/core" : " ^1.2.14 " ,
56+ "@orama/core" : " ^1.2.15 " ,
5757 "@storybook/addon-styling-webpack" : " ^3.0.0" ,
5858 "@storybook/addon-themes" : " ^10.1.4" ,
5959 "@storybook/addon-webpack5-compiler-swc" : " ^4.0.2" ,
Original file line number Diff line number Diff line change 1919 rounded-full
2020 p-2
2121 text-neutral-800
22- duration-300
2322 hover:bg-neutral-300
2423 focus:bg-neutral-300
2524 focus:outline-none
Original file line number Diff line number Diff line change 3333 bg-green-600
3434 p-2
3535 text-white
36- duration-300
3736 focus:bg-green-600/75
3837 focus:outline-none
3938 disabled:cursor-not-allowed
5857 sm:text-sm
5958 dark:text-neutral-500;
6059}
60+
61+ .suggestionsWrapper {
62+ @apply mb-4
63+ flex
64+ items-center
65+ gap-2
66+ overflow-x-auto
67+ px-1
68+ text-sm
69+ lg:justify-center;
70+
71+ & ::-webkit-scrollbar {
72+ @apply hidden;
73+ }
74+ }
75+
76+ .suggestionsItem {
77+ @apply flex
78+ size-max
79+ cursor-pointer
80+ rounded-full
81+ border
82+ border-neutral-300
83+ bg-neutral-200
84+ px-3
85+ py-1
86+ whitespace-nowrap
87+ text-neutral-900
88+ hover:bg-neutral-300
89+ focus:bg-neutral-300
90+ focus:outline-none
91+ motion-safe:transition-colors
92+ dark:border-neutral-900
93+ dark:bg-neutral-950
94+ dark:text-neutral-200
95+ dark:hover:bg-neutral-900
96+ dark:focus:bg-neutral-900;
97+ }
Original file line number Diff line number Diff line change @@ -39,7 +39,13 @@ const ChatInput: FC<PropsWithChildren<ChatInputProps>> = ({
3939
4040 return (
4141 < >
42- { ! interactions ?. length && < SearchSuggestions suggestions = { suggestions } /> }
42+ { ! interactions ?. length && (
43+ < SearchSuggestions
44+ suggestions = { suggestions }
45+ wrapper = { styles . suggestionsWrapper }
46+ className = { styles . suggestionsItem }
47+ />
48+ ) }
4349 < div className = { styles . textareaContainer } >
4450 < PromptTextArea . Wrapper className = { styles . textareaWrapper } >
4551 < PromptTextArea . Field
Original file line number Diff line number Diff line change 2424 bg-transparent
2525 p-3
2626 text-sm
27- duration-300
2827 hover:bg-neutral-300
2928 focus-visible:border-green-600
3029 focus-visible:outline-none
Original file line number Diff line number Diff line change 2323 bg-white
2424 p-1.5
2525 text-neutral-900
26+ hover:bg-neutral-100
27+ motion-safe:transition-colors
2628 dark:border-neutral-900
2729 dark:bg-neutral-950
2830 dark:text-neutral-200;
7981 items-start
8082 justify-center
8183 bg-white/70
82- pt-[5vh ]
84+ lg: pt-[5vh ]
8385 dark:bg-zinc-950/70;
8486}
8587
8688.modalInner {
8789 @apply fixed
88- top-auto
89- bottom-auto
90+ top-0
91+ bottom-0
9092 mx-auto
9193 my-0
9294 flex
93- h-auto
94- w-full
95- max-w-3xl
96- bg-neutral-100
97- dark:bg-neutral-950;
98-
99- > section {
100- @apply w-full;
101- }
95+ h-full
96+ max-w-none
97+ bg-white
98+ lg:top-auto
99+ lg:bottom-auto
100+ lg:h-auto
101+ lg:max-w-3xl
102+ lg:bg-neutral-100
103+ dark:bg-zinc-950
104+ lg:dark:bg-neutral-950;
102105}
103106
104107.modalContent {
105108 @apply flex
106- h-auto
107- max-h-[ 70 vh ]
109+ h-full
110+ w-screen
108111 flex-col
109- rounded-xl
110- border
111112 border-neutral-200
113+ lg:h-auto
114+ lg:max-h-[70vh ]
115+ lg:w-auto
116+ lg:rounded-xl
117+ lg:border
112118 dark:border-neutral-900;
113119}
You can’t perform that action at this time.
0 commit comments