Skip to content

Commit 7f51a72

Browse files
authored
fix(ui): broken sidebar, table of content and header on linux (#315)
* move squircle to only to active and hover states * fix hover * fix squircle in header * fix toc * rm redundant line
1 parent f78b9ec commit 7f51a72

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

src/frontend/styles/components/header.pcss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ html {
4040

4141
@media (--not-mobile) {
4242
padding: 4px 10px;
43-
@apply --squircle;
43+
44+
&:hover {
45+
@apply --squircle;
46+
}
4447
}
4548

4649
&:hover {

src/frontend/styles/components/sidebar.pcss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,16 @@
182182
transition-property: background-color;
183183
transition-duration: 0.1s;
184184

185-
@apply --squircle;
186-
187185
&--selected {
188186
border-radius: 8px;
189187
/* border using box-shadow which doesn't increase the height */
190188
box-shadow: 0 0 0 2px rgba(147, 166, 233, 0.5) inset;
191189
}
190+
191+
&--active,
192+
&:hover {
193+
@apply --squircle;
194+
}
192195
}
193196

194197
&__section-title > span,

src/frontend/styles/components/table-of-content.pcss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131
gap: 2px;
3232

3333
&-item {
34-
@apply --squircle;
34+
&:hover,
35+
&--active {
36+
@apply --squircle;
37+
}
3538

3639
&:hover {
3740
background-color: var(--color-link-hover);

0 commit comments

Comments
 (0)