-
Notifications
You must be signed in to change notification settings - Fork 15
fix(Cluster): side paddings #2301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,29 @@ | |
|
||
width: 100%; | ||
height: 100%; | ||
padding: 0 var(--cluster-side-padding); | ||
|
||
&__sticky-wrapper { | ||
padding: 0 var(--cluster-side-padding); | ||
} | ||
|
||
&__dashboard { | ||
position: sticky; | ||
left: 0; | ||
|
||
padding: 0 var(--cluster-side-padding); | ||
} | ||
|
||
&__content { | ||
width: calc(100% - var(--cluster-side-padding)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems that this is the last evil, but essential. For now our scroll container doesn't have paddings, so sticky elements stick to it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What if you add left padding to cluster scroll container, and right padding to all cluster components (dashboard, tabs, tabs content)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
//allows controls of TableWithControlsLayout to stick properly | ||
transform: translateX(var(--cluster-side-padding)); | ||
} | ||
|
||
&__header { | ||
position: sticky; | ||
left: 0; | ||
|
||
padding: 20px 0; | ||
padding: var(--g-spacing-5) var(--cluster-side-padding); | ||
} | ||
|
||
&__title { | ||
|
@@ -32,11 +48,7 @@ | |
z-index: 3; | ||
|
||
margin-top: 20px; | ||
margin-right: calc(var(--cluster-side-padding) * -2); | ||
padding-right: calc(var(--cluster-side-padding) * 2); | ||
padding-left: var(--cluster-side-padding); | ||
|
||
transform: translateX(calc(var(--cluster-side-padding) * -1)); | ||
padding: 0 var(--cluster-side-padding); | ||
@include mixins.sticky-top(); | ||
} | ||
&__tabs { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,4 @@ | |
&__node_unavailable { | ||
opacity: 0.6; | ||
} | ||
|
||
&__groups-wrapper { | ||
padding-right: 20px; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,4 @@ | |
.entity-status { | ||
justify-content: center; | ||
} | ||
|
||
&__groups-wrapper { | ||
padding-right: 20px; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
width: 100%
here is for the create db button - it should stick to the rightExpected:

You code:
