Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 6aee383

Browse files
committed
fix(mobile): width on tablet view
1 parent 6312bd8 commit 6aee383

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/public/app/layouts/mobile_layout.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default class MobileLayout {
130130
.id("mobile-rest-container")
131131
.child(
132132
new SidebarContainer("tree", "column")
133-
.class("d-sm-flex d-md-flex d-lg-flex d-xl-flex col-12 col-sm-5 col-md-4 col-lg-3 col-xl-3")
133+
.class("d-md-flex d-lg-flex d-xl-flex col-12 col-sm-5 col-md-4 col-lg-3 col-xl-3")
134134
.id("mobile-sidebar-wrapper")
135135
.css("max-height", "100%")
136136
.css("padding-left", "0")
@@ -142,10 +142,6 @@ export default class MobileLayout {
142142
new ScreenContainer("detail", "column")
143143
.id("detail-container")
144144
.class("d-sm-flex d-md-flex d-lg-flex d-xl-flex col-12 col-sm-7 col-md-8 col-lg-9")
145-
.css("padding-left", "0")
146-
.css("padding-right", "0")
147-
.css("max-height", "100%")
148-
.css("position", "relative")
149145
.child(
150146
new FlexContainer("row")
151147
.contentSized()

src/public/stylesheets/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,12 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
13151315
}
13161316

13171317
/* Mobile, phone mode */
1318+
1319+
#detail-container {
1320+
max-height: 100%;
1321+
position: relative;
1322+
}
1323+
13181324
@media (max-width: 991px) {
13191325
body.mobile #launcher-pane .dropdown.global-menu > .dropdown-menu.show,
13201326
body.mobile #launcher-container .dropdown > .dropdown-menu.show {
@@ -1354,6 +1360,10 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu {
13541360
z-index: 2000;
13551361
}
13561362

1363+
#detail-container {
1364+
width: 100%;
1365+
}
1366+
13571367
#mobile-sidebar-container.show #mobile-sidebar-wrapper {
13581368
transform: translateX(0);
13591369
}

0 commit comments

Comments
 (0)