Skip to content

Commit e531c40

Browse files
Andrew Lucashockey
authored andcommitted
fix(styles): stop wrapper from overflowing on smaller devices (#4121)
When using `swagger-ui` for consumption by JavaScript web projects that include module bundlers, instead of `swagger-ui-dist` there is no `box-sizing: border-box` on `.wrapper` and it's width overflows because of additional `padding: 0 20px`
1 parent f29202f commit e531c40

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/style/_layout.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
max-width: 1460px;
55
margin: 0 auto;
66
padding: 0 20px;
7+
box-sizing: border-box;
78
}
89

910
.opblock-tag-section

src/style/_mixins.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,4 @@ $browser-context: 16;
171171
animation: shake .4s 1;
172172
border-color: $_color-delete;
173173
background: lighten($_color-delete, 35%);
174-
}
174+
}

0 commit comments

Comments
 (0)