Skip to content

Commit 34ab24c

Browse files
committed
Card width on mobile fix
1 parent c4af7e8 commit 34ab24c

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

css/cards.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,16 @@ img.chevron {
150150
span.card-basic {
151151
width: -moz-fit-content;
152152
width: fit-content;
153-
display: block !important;
153+
display: inline-block !important;
154154
padding: 0em 0.5em 0em 0.5em !important;
155+
max-width: 100%;
156+
overflow-x: auto;
157+
vertical-align: middle;
158+
line-height: 1.8em !important;
155159
}
156160
.card-basic {
157161
width: unset;
162+
display: inline-block;
163+
max-width: 100%;
158164
}
159165
}/*# sourceMappingURL=cards.css.map */

css/cards.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/cards.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,17 @@ img.chevron {
148148

149149
span.card-basic {
150150
width: fit-content;
151-
display: block !important;
151+
display: inline-block !important;
152152
padding: 0em 0.5em 0em 0.5em !important;
153+
max-width: 100%;
154+
overflow-x: auto;
155+
vertical-align: middle;
156+
line-height: 1.8em !important;
153157
}
154158

155159
.card-basic {
156160
width: unset;
161+
display: inline-block;
162+
max-width: 100%;
157163
}
158164
}

0 commit comments

Comments
 (0)