Skip to content

Commit 5858402

Browse files
authored
DEV: reduce chrome compositing issues for sidebar (#36670)
Chrome wasn't liking the `all` transition on this and it was showing performance issues with `scrollbar-color` and `.sidebar-section-header-button` — this more specific transition style seems to avoid it. After this is merged, these will go away: <img width="333" alt="image" src="https://github.com/user-attachments/assets/eb4077ea-abf7-4ccf-aed1-72ad36dc2091" />
1 parent 0b38b2e commit 5858402

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/assets/stylesheets/common/base/sidebar-section.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
calc(var(--d-sidebar-row-horizontal-padding) / 3);
2424

2525
.discourse-no-touch & {
26-
transition: all 0.25s;
26+
transition:
27+
opacity 0.25s,
28+
background 0.25s;
2729
opacity: 0;
2830

2931
&:hover {

0 commit comments

Comments
 (0)