Skip to content

Commit 28fab9e

Browse files
author
zhusha
committed
style:修复ios书籍标题问题
1 parent 7e7da0c commit 28fab9e

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/assets/css/book/mobile/index.less

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@
233233
}
234234

235235
.u-pvx-book-name {
236+
.w(35%);
236237
background: url("../../../img/book/title.png") center center no-repeat;
237238
background-size: 100% 100%;
238239
margin: 0.5rem;
@@ -244,16 +245,15 @@
244245
.u-text {
245246
.h(100%);
246247
overflow: hidden;
247-
display: flex;
248+
display: grid;
249+
place-items: center;
248250

249251
.fz(0.875rem);
250252
.bold(600);
251253
writing-mode: vertical-lr;
252254
text-orientation: upright;
253255
white-space: nowrap;
254256
word-break: break-all;
255-
align-items: center;
256-
justify-content: center;
257257
letter-spacing: 0.2rem;
258258

259259
&.is-scroll {
@@ -272,6 +272,8 @@
272272
}
273273

274274
.u-pvx-book-line {
275+
flex-shrink: 0;
276+
.w(12%);
275277
.h(100%);
276278

277279
img {

0 commit comments

Comments
 (0)