Skip to content

Commit 96ee321

Browse files
authored
Narrow smallest width by a small amount globally (#8300)
1 parent c5dd300 commit 96ee321

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/Bootstrap/dist/css/bootstrap-theme.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Bootstrap/less/theme/base.less

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ body {
249249
.alert {
250250
margin: 0;
251251
padding: 10px;
252-
}
252+
}
253253
}
254254

255255
.alert-transient-jumbotron {
@@ -261,7 +261,7 @@ body {
261261

262262
li {
263263
position: relative;
264-
264+
265265
i.ms-Icon {
266266
position: absolute;
267267
left: -24px;
@@ -286,11 +286,12 @@ h2, h3 {
286286
.container {
287287
// Bootstrap doesn't set the container width when the screen is xs.
288288
// This works fine when there are no elements in the container that are wider than the viewport,
289-
// however, if there are elements in the container that are wider than the viewport,
289+
// however, if there are elements in the container that are wider than the viewport,
290290
// their overflow properties will not work properly because they are not bound by the size of the container.
291291
// To fix this, we need to set the container width to be the width of the viewport minus the row margin on xs screens.
292292
// This way, those elements that are larger than the viewport are properly bound by the size of the container and overflow properly.
293-
width: calc(100vw - 15px);
293+
// 2020.10.27: We actually need to set it slightly smaller than the row margin as a horizontal scrollbar appears at xs when exactly matched.
294+
width: calc(100vw - 20px);
294295
}
295296

296297
.navbar-toggle {
@@ -425,4 +426,4 @@ img.reserved-indicator-icon {
425426

426427
.sortable {
427428
cursor: pointer;
428-
}
429+
}

0 commit comments

Comments
 (0)