Skip to content

Commit ba374bc

Browse files
committed
white-space to pre-wrap
1 parent 376b652 commit ba374bc

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

apps/web/app/pages/sessions/[id]/index.vue

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,24 @@ useHead({
139139
}
140140
141141
.detailbody-explain {
142-
/* margin: 0 auto calc(var(--unit) * 8); */
142+
--body-font-size: 1.125rem;
143+
--body-font-weight: 500;
144+
145+
font-size: var(--body-font-size);
146+
font-weight: var(--body-font-weight);
147+
white-space: pre-wrap;
148+
149+
::v-deep(p) {
150+
--body-p-margin-bottom: calc(var(--unit) * 4);
151+
152+
margin-bottom: var(--body-p-margin-bottom);
153+
line-height: 1.8;
154+
}
155+
156+
::v-deep(p:last-child) {
157+
text-align: right;
158+
margin-bottom: 0px;
159+
}
143160
}
144161
145162
.detailbody-explain ul {

apps/web/app/pages/sponsors/[id]/index.vue

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,24 @@ useHead({
191191
}
192192
193193
.detailhead-right {
194-
font-size: 18px;
194+
--body-font-size: 1.125rem;
195+
--body-font-weight: 500;
196+
197+
font-size: var(--body-font-size);
198+
font-weight: var(--body-font-weight);
199+
white-space: pre-wrap;
200+
201+
::v-deep(p) {
202+
--body-p-margin-bottom: calc(var(--unit) * 4);
203+
204+
margin-bottom: var(--body-p-margin-bottom);
205+
line-height: 1.8;
206+
}
207+
208+
::v-deep(p:last-child) {
209+
text-align: right;
210+
margin-bottom: 0px;
211+
}
195212
}
196213
197214
.detailhead-right ::v-deep(a) {

0 commit comments

Comments
 (0)