Skip to content

Commit 1f743c3

Browse files
feat(boxai-sidebar): Fixed jumping width for .be-default-error selector (#3772)
* feat(boxai-sidebar): Fixed jumping width for .be-default-error selector * feat(boxai-sidebar): Width styles fixes * feat(boxai-sidebar): Styles variables added * feat(boxai-sidebar): Styles variables comment added --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent c55cce9 commit 1f743c3

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

src/elements/content-sidebar/ContentSidebar.scss

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
$sidebarTabsWidth: 60px;
44
$sidebarWidth: $sidebarTabsWidth + $sidebarContentWidth;
55
$sidebarIncreasedWidth: $sidebarTabsWidth + $sidebarContentIncreasedWidth;
6+
$sidebarDefaultErrorWidth: $sidebarContentWidth - 16px; // 16px is the compined 8px left and right margin on the .be-default-error
7+
$sidebarDefaultErrorIncreasedWidth: $sidebarContentIncreasedWidth - 16px;
68

79
.be {
810
&.bcs {
@@ -27,14 +29,26 @@ $sidebarIncreasedWidth: $sidebarTabsWidth + $sidebarContentIncreasedWidth;
2729
white-space: nowrap;
2830
}
2931

32+
.be-default-error {
33+
min-width: $sidebarDefaultErrorWidth;
34+
}
35+
3036
&.bcs-is-open {
3137
.bcs-loading {
3238
width: $sidebarWidth;
3339
}
3440
}
3541

36-
&.bcs-is-wider.bcs-is-open .bcs-loading {
37-
width: $sidebarIncreasedWidth;
42+
&.bcs-is-wider {
43+
.be-default-error {
44+
min-width: $sidebarDefaultErrorIncreasedWidth;
45+
}
46+
47+
&.bcs-is-open {
48+
.bcs-loading {
49+
width: $sidebarIncreasedWidth;
50+
}
51+
}
3852
}
3953
}
4054

0 commit comments

Comments
 (0)