Skip to content

Commit b06763c

Browse files
fix: make the searchButton width dynamic to fit the content (#6904)
* fix: make the `searchButton` width dynamic to fit the content closes ##6903 * fix(search component): adjust `search` component to better adapt to the available space adjust the `search` component to better adapt to the available space * fix(navbar): better distribute navigation items according to available space adjust the main navigation component to better distribute the elements * fix(navitem): increase the font-size of navigation items adjust the font-size of navigation items, especially on mobile
1 parent 3fe77d5 commit b06763c

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.searchButton {
22
@apply flex
3-
w-52
3+
grow
4+
basis-80
5+
items-center
46
gap-2
57
rounded-md
68
bg-neutral-200
@@ -9,6 +11,7 @@
911
text-neutral-800
1012
hover:bg-neutral-300
1113
hover:text-neutral-900
14+
sm:mr-auto
1215
dark:bg-neutral-900
1316
dark:text-neutral-600
1417
dark:hover:bg-neutral-800

apps/site/components/Containers/NavBar/NavItem/index.module.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
py-2;
88

99
.label {
10-
@apply text-sm
10+
@apply text-base
1111
font-medium
12-
leading-5;
12+
lg:text-sm;
1313
}
1414

1515
.icon {

apps/site/components/Containers/NavBar/index.module.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
@apply hidden
4848
flex-1
4949
flex-col
50+
justify-between
51+
gap-4
5052
lg:flex
5153
lg:flex-row
5254
lg:items-center;
@@ -55,24 +57,30 @@
5557
.navItems {
5658
@apply flex
5759
flex-col
58-
gap-1
60+
gap-0
5961
border-b
6062
border-neutral-200
6163
p-4
6264
lg:flex-1
6365
lg:flex-row
66+
lg:gap-1
6467
lg:border-0
6568
lg:p-0
6669
dark:border-neutral-900;
6770
}
6871

6972
.actionsWrapper {
7073
@apply flex
74+
flex-row
75+
flex-wrap
7176
items-center
77+
justify-between
7278
gap-2
7379
border-b
7480
border-neutral-200
7581
p-4
82+
sm:flex-nowrap
83+
lg:basis-96
7684
lg:border-0
7785
lg:p-0
7886
dark:border-neutral-900;

0 commit comments

Comments
 (0)