Skip to content

Commit c95a223

Browse files
committed
style: minor style fixes
1 parent 0e28da9 commit c95a223

File tree

6 files changed

+13
-28
lines changed

6 files changed

+13
-28
lines changed

apps/site/components/Common/Searchbox/ChatSources/index.module.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
items-center
88
gap-3
99
overflow-x-scroll
10-
scroll-smooth;
11-
12-
-ms-overflow-style: none;
13-
scrollbar-width: none;
10+
scroll-smooth
11+
[-ms-overflow-style:none]
12+
[scrollbar-width:none];
1413

1514
&::-webkit-scrollbar {
1615
@apply hidden;

apps/site/components/Common/Searchbox/ChatSources/index.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,9 @@ import { ChatInteractions } from '@orama/ui/components';
55
import type { FC } from 'react';
66

77
import styles from './index.module.css';
8+
import type { Document } from '../DocumentLink';
89
import { DocumentLink } from '../DocumentLink';
910

10-
type DocumentSource = {
11-
path: string;
12-
siteSection: string;
13-
pageSectionTitle?: string;
14-
[key: string]: unknown;
15-
};
16-
1711
type ChatSourcesProps = {
1812
interaction: Interaction;
1913
};
@@ -33,7 +27,7 @@ export const ChatSources: FC<ChatSourcesProps> = ({ interaction }) => {
3327
<div className={styles.chatSource} key={index}>
3428
{typeof document.pageSectionTitle === 'string' && (
3529
<DocumentLink
36-
document={document as DocumentSource}
30+
document={document as Document}
3731
className={styles.chatSourceLink}
3832
data-focus-on-arrow-nav
3933
>

apps/site/components/Common/Searchbox/Footer/index.module.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@
3535
items-center
3636
gap-2
3737
text-xs
38-
text-neutral-700
39-
dark:text-neutral-700;
38+
text-neutral-700;
4039
}
4140

4241
.shortcutKey {
43-
@apply rounded-md
42+
@apply font-ibm-plex-mono
43+
rounded-md
4444
bg-neutral-200
4545
p-1
46-
font-mono
4746
text-xs
4847
dark:bg-neutral-900;
4948

apps/site/components/Common/Searchbox/Search/index.module.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
.searchInput {
3232
@apply w-full
33-
border-0
3433
border-b
3534
border-neutral-200
3635
bg-transparent
@@ -102,8 +101,7 @@
102101
}
103102

104103
.suggestionsTitle {
105-
@apply mb-3
106-
mt-3
104+
@apply my-3
107105
text-xs
108106
font-semibold
109107
uppercase

apps/site/components/Common/Searchbox/SlidingChatPanel/index.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
p-0
3636
text-white
3737
duration-300
38-
ease-in-out
38+
motion-safe:ease-in-out
3939
dark:border-neutral-900
4040
dark:bg-zinc-950;
4141
}

apps/site/components/Common/Searchbox/index.module.css

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
border
2121
border-neutral-300
2222
bg-white
23-
py-1
24-
pl-2
25-
pr-1
23+
p-1.5
2624
text-neutral-900
2725
duration-300
2826
hover:bg-neutral-100
@@ -39,7 +37,6 @@
3937
flex-nowrap
4038
items-center
4139
gap-1
42-
p-2
4340
text-sm;
4441

4542
svg {
@@ -68,8 +65,7 @@
6865
mx-auto
6966
my-0
7067
flex
71-
h-full
72-
w-full
68+
size-full
7369
items-start
7470
justify-center
7571
bg-white/70
@@ -133,8 +129,7 @@
133129
@apply rounded-4xl
134130
flex
135131
bg-neutral-200
136-
px-1
137-
py-1
132+
p-1
138133
text-sm
139134
text-neutral-900
140135
dark:bg-neutral-900

0 commit comments

Comments
 (0)