From c4f8426349baaa7e804182e455126c9353b08744 Mon Sep 17 00:00:00 2001 From: Shpuld Shpludson Date: Sat, 2 Mar 2019 16:35:38 +0000 Subject: Re-do status header a bit, add more consistent spacing to status --- src/components/attachment/attachment.vue | 2 +- src/components/gallery/gallery.vue | 3 + src/components/link-preview/link-preview.vue | 4 - src/components/status/status.js | 2 +- src/components/status/status.vue | 262 ++++++++++++++++----------- 5 files changed, 161 insertions(+), 112 deletions(-) (limited to 'src/components') diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 7e972026..76affe2d 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -88,7 +88,7 @@ .attachment { position: relative; - margin: 0.5em 0.5em 0em 0em; + margin-top: 0.5em; align-self: flex-start; line-height: 0; diff --git a/src/components/gallery/gallery.vue b/src/components/gallery/gallery.vue index 3f90caa9..2366ddf7 100644 --- a/src/components/gallery/gallery.vue +++ b/src/components/gallery/gallery.vue @@ -36,6 +36,9 @@ box-sizing: border-box; // to make failed images a bit more noticeable on chromium min-width: 2em; + &:last-child { + margin: 0; + } } .image-attachment { diff --git a/src/components/link-preview/link-preview.vue b/src/components/link-preview/link-preview.vue index e4a247c5..7394668c 100644 --- a/src/components/link-preview/link-preview.vue +++ b/src/components/link-preview/link-preview.vue @@ -24,10 +24,6 @@ cursor: pointer; overflow: hidden; - // TODO: clean up the random margins in attachments, this makes preview line - // up with attachments... - margin-right: 0.5em; - .card-image { flex-shrink: 0; width: 120px; diff --git a/src/components/status/status.js b/src/components/status/status.js index fab2fe62..fbbca6c4 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -23,7 +23,7 @@ const Status = { 'highlight', 'compact', 'replies', - 'noReplyLinks', + 'isPreview', 'noHeading', 'inlineExpanded' ], diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 3fc5b486..46919d7c 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -1,6 +1,6 @@