Skip to content

Commit b497bf0

Browse files
committed
ots page: fix zero horizontal margin on mobile
`.ots-calendars { padding: 1rem 0 }` zeroed Bootstrap's responsive horizontal padding on the parent .container-xl, so on small screens the page content sat flush against the viewport edge (the screenshot showed text touching the left side at 0px). Split into explicit padding-top + padding-bottom so the container's --bs-gutter-x stays intact and we still get vertical breathing room.
1 parent 47e5f2f commit b497bf0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

frontend/src/app/components/_ordpool/open-timestamps/open-timestamps.component.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
.ots-calendars {
2-
padding: 1rem 0;
2+
// Vertical breathing room only -- leave Bootstrap's responsive
3+
// horizontal padding (--bs-gutter-x on .container-xl) intact.
4+
// Setting `padding: 1rem 0` here zeroes the horizontal padding and
5+
// the page content slams against the viewport edge on mobile.
6+
padding-top: 1rem;
7+
padding-bottom: 1rem;
38

49
.text-right {
510
text-align: right;

0 commit comments

Comments
 (0)