Skip to content

Commit ecf3eeb

Browse files
fix(sidebar): move flex styles to CSS file & adding margin , rounded on item
1 parent 274ddd9 commit ecf3eeb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/ui-components/src/Containers/Sidebar/SidebarItem/index.module.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
@apply font-regular
55
relative
66
z-20
7+
mb-px
78
flex
89
w-full
910
items-center
1011
overflow-hidden
12+
rounded-md
1113
text-sm
1214
text-neutral-800
1315
dark:text-neutral-200;
@@ -30,7 +32,11 @@
3032

3133
.label {
3234
@apply font-regular
33-
p-2;
35+
flex
36+
items-center
37+
gap-1.5
38+
p-2
39+
text-sm;
3440
}
3541

3642
.progressionIcon {

packages/ui-components/src/Containers/Sidebar/SidebarItem/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const SidebarItem: FC<SidebarItemProps> = ({
3535
<ProgressionIcon className={styles.progressionIcon} />
3636
)}
3737

38-
<div className={`${styles.label} flex items-center gap-1.5`}>
38+
<div className={styles.label}>
3939
<span>{label}</span>
4040

4141
{/^https?:/.test(link) && <ArrowUpRightIcon className={styles.icon} />}

0 commit comments

Comments
 (0)