Skip to content

Commit 556cb20

Browse files
committed
[static.layout.html] Remove usage of CSS white-space property in messages.
1 parent c6e9569 commit 556cb20

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/resource/template/fragment/yn-account-message-list.deval

+2-3
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@
3535
<a class="bind-tooltip gly-left login user" href="{{ $ url ("board.profile.view", ["profile": message.sender_id, "_template": null]) }}" title="{{ $ tra ("yn.account.message.list.profile.hint") }}" itemprop="name">{{ $ message.sender.login }}</a>
3636
</span>
3737
<em class="time">{{ $ tra ("yn.account.message.list.time", ["message": message]) }}</em>
38-
<span class="to">
38+
<span class="glyph10 to ux-goto">
3939
{{ $ tra ("yn.account.message.list.to") }}
40-
</span>
41-
<span class="glyph10 ux-goto">
40+
{{ $ " " }}
4241
{{ for box in filter (boxes, (box) => box.recipient_id != message.sender_id) }}
4342
<a class="bind-message bind-tooltip gly-left message-{{ $ box.state > 0 && "read" || "new" }}" href="{{ $ url ("account.message.new", ["to": box.recipient.login]) }}" title="{{ $ tra ("yn.account.message.list.box", ["login": box.recipient.login, "state": box.state]) }}">{{ $ box.recipient.login }}</a>
4443
{{ $ " " }}

src/static/layout/html/page.inc.less

+4-4
Original file line numberDiff line numberDiff line change
@@ -415,16 +415,16 @@ strong {
415415
border-color: @message-old-border;
416416

417417
.from {
418-
white-space: pre;
418+
flex: 0 0 auto;
419419
}
420420

421421
.time {
422-
flex: 1;
423-
white-space: pre;
422+
flex: 0 0 auto;
424423
}
425424

426425
.to {
427-
white-space: pre;
426+
flex: 1 1 100%;
427+
text-align: right;
428428
}
429429
}
430430

0 commit comments

Comments
 (0)