Skip to content

Commit aaf68d0

Browse files
Anthony KinseyAnthony Kinsey
authored andcommitted
fix: issue with motd spacer not being the right width in mobile and desktop
1 parent c2e9ec1 commit aaf68d0

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ main {
102102
.main { grid-area: main; }
103103
104104
@include break-mobile-sm {
105-
padding: 2rem 1rem 0;
105+
padding: .5rem 1rem 0;
106106
107107
#public-content,
108108
.posts #public-content {

src/components/layout/Header.vue

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@
247247
<register-modal :show="showRegister" @close="showRegister = false" />
248248
</div>
249249
</header>
250-
<div v-if="motdData && motdData.motd_html.length && !hideAnnnouncement" id="motd-spacer"></div>
250+
<div v-if="motdData && motdData.motd_html.length && !hideAnnnouncement" id="motd-spacer-wrap">
251+
<div id="motd-spacer" v-html="motdData?.motd_html"></div>
252+
</div>
251253
</template>
252254

253255
<script>
@@ -1033,5 +1035,30 @@ header {
10331035
}
10341036
}
10351037
1036-
#motd-spacer { height: 1rem; @include break-mobile-sm { height: 2rem; } }
1038+
#motd-spacer-wrap {
1039+
@include clearfix();
1040+
@include pad(0 $base-grid-padding);
1041+
margin-bottom: $breadcrumbs-bottom-margin;
1042+
max-height: 3.2rem;
1043+
overflow-y: auto;
1044+
width: 100%;
1045+
position: relative;
1046+
margin-top: -1rem;
1047+
opacity: 0;
1048+
1049+
@include break-mobile-sm {
1050+
font-size: $font-size-sm;
1051+
line-height: 1.2;
1052+
max-height: 3.7rem;
1053+
padding: 0 1rem;
1054+
margin-top: 0;
1055+
}
1056+
1057+
#motd-spacer {
1058+
@include base-layout-width;
1059+
clear: both;
1060+
padding: 0.5rem 0;
1061+
color: #666;
1062+
}
1063+
}
10371064
</style>

0 commit comments

Comments
 (0)