summaryrefslogtreecommitdiff
path: root/packages/client/src/components/MkNoteDetailed.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-12-26 08:40:13 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-12-26 08:40:13 +0900
commitc95da270191293b8171f4f1197ef609905a9b911 (patch)
tree8f94adf8c54dea64f32d0adedf5f4cf556525efb /packages/client/src/components/MkNoteDetailed.vue
parentencodeURIComponent for static image proxy filename (#9410) (diff)
downloadmisskey-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.vue68
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;