Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/containers/Cluster/Cluster.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
&__tabs-sticky-wrapper {
z-index: 3;

width: calc(100% + var(--cluster-side-padding) * 2);
margin-top: 20px;
margin-right: calc(var(--cluster-side-padding) * -2);
padding-right: calc(var(--cluster-side-padding) * 2);
padding-right: calc(var(--cluster-side-padding) * 1);
padding-left: var(--cluster-side-padding);

transform: translateX(calc(var(--cluster-side-padding) * -1));
Expand Down
4 changes: 3 additions & 1 deletion src/containers/Nodes/Nodes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
}

&__groups-wrapper {
padding-right: 20px;
--nodes-side-padding: var(--g-spacing-5);
width: calc(100% + var(--nodes-side-padding));
padding-right: var(--nodes-side-padding);
Copy link
Member

@artemmufazalov artemmufazalov May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't you just remove padding here?

Such approach (100%+ width, hidden paddings, negative margins, transforms) is cursed, it causes unexpected behavior and bugs long-term - you fix cluster controls and autorefresh layout bugs every 2-3 weeks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really, thats time to get rid of this evil.
So, I've done it. Stand redeployed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't delete groups wrapper classes

}
}
4 changes: 3 additions & 1 deletion src/containers/Storage/Storage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
}

&__groups-wrapper {
padding-right: 20px;
--nodes-side-padding: var(--g-spacing-5);
width: calc(100% + var(--nodes-side-padding));
padding-right: var(--nodes-side-padding);
}
}
Loading