Skip to content

Commit c76eee3

Browse files
committed
fix: Resolve Portal layout trashing by replacing JS-driven size classes with CSS Media Queries (#8481)
1 parent c0532f7 commit c76eee3

2 files changed

Lines changed: 8 additions & 15 deletions

File tree

resources/scss/src/apps/portal/shared/content/Component.scss

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
background-color: transparent;
33
}
44

5-
.portal-size-large {
6-
.portal-content-component,
7-
.neo-markdown-component {
8-
min-width: 0;
5+
.portal-content-component,
6+
.neo-markdown-component {
7+
min-width: 0;
98

10-
@media (min-width: 1297px) {
11-
margin-left: 0;
12-
max-width : min(1200px, calc(100% - 250px));
13-
}
9+
@media (min-width: 1297px) {
10+
margin-left: 0;
11+
max-width : min(1200px, calc(100% - 250px));
1412
}
1513
}

resources/scss/src/apps/portal/shared/content/PageContainer.scss

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020

2121

2222
@media (min-width: 1297px) {
23-
padding: 0 0 0 3rem;
23+
margin-right: 250px;
24+
padding : 0 0 0 3rem;
2425
}
2526

2627
.neo-button {
@@ -66,9 +67,3 @@
6667
}
6768
}
6869
}
69-
70-
.portal-size-large {
71-
.content-bottom-toolbar {
72-
margin-right: 250px;
73-
}
74-
}

0 commit comments

Comments
 (0)