diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-26 08:40:13 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-26 08:40:13 +0900 |
| commit | c95da270191293b8171f4f1197ef609905a9b911 (patch) | |
| tree | 8f94adf8c54dea64f32d0adedf5f4cf556525efb /packages/client/src/components/MkNoteDetailed.vue | |
| parent | encodeURIComponent for static image proxy filename (#9410) (diff) | |
| download | misskey-c95da270191293b8171f4f1197ef609905a9b911.tar.gz misskey-c95da270191293b8171f4f1197ef609905a9b911.tar.bz2 misskey-c95da270191293b8171f4f1197ef609905a9b911.zip | |
enhance(client): use container queries if available to improve perf
Diffstat (limited to 'packages/client/src/components/MkNoteDetailed.vue')
| -rw-r--r-- | packages/client/src/components/MkNoteDetailed.vue | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/packages/client/src/components/MkNoteDetailed.vue b/packages/client/src/components/MkNoteDetailed.vue index 8269906bb0..7ce8e039d9 100644 --- a/packages/client/src/components/MkNoteDetailed.vue +++ b/packages/client/src/components/MkNoteDetailed.vue @@ -444,6 +444,8 @@ if (appearNote.replyId) { > .main { > .body { + container-type: inline-size; + > .cw { cursor: default; display: block; @@ -601,6 +603,72 @@ if (appearNote.replyId) { } } +@container (max-width: 500px) { + .lxwezrsl { + font-size: 0.9em; + } +} + +@container (max-width: 450px) { + .lxwezrsl { + > .renote { + padding: 8px 16px 0 16px; + } + + > .article { + padding: 16px; + + > .header { + > .avatar { + width: 50px; + height: 50px; + } + } + } + } +} + +@container (max-width: 350px) { + .lxwezrsl { + > .article { + > .main { + > .footer { + > .button { + &:not(:last-child) { + margin-right: 18px; + } + } + } + } + } + } +} + +@container (max-width: 300px) { + .lxwezrsl { + font-size: 0.825em; + + > .article { + > .header { + > .avatar { + width: 50px; + height: 50px; + } + } + + > .main { + > .footer { + > .button { + &:not(:last-child) { + margin-right: 12px; + } + } + } + } + } + } +} + .muted { padding: 8px; text-align: center; |