From c4f8426349baaa7e804182e455126c9353b08744 Mon Sep 17 00:00:00 2001 From: Shpuld Shpludson Date: Sat, 2 Mar 2019 16:35:38 +0000 Subject: [PATCH] Re-do status header a bit, add more consistent spacing to status --- src/App.scss | 26 +- 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 | 270 +++++++++++-------- src/i18n/en.json | 4 + src/i18n/fi.json | 4 + 8 files changed, 188 insertions(+), 127 deletions(-) diff --git a/src/App.scss b/src/App.scss index 7c6970c121..a0d1a804aa 100644 --- a/src/App.scss +++ b/src/App.scss @@ -628,6 +628,16 @@ nav { color: $fallback--faint; color: var(--faint, $fallback--faint); } + +.faint-link { + color: $fallback--faint; + color: var(--faint, $fallback--faint); + + &:hover { + text-decoration: underline; + } +} + @media all and (min-width: 800px) { .logo { opacity: 1 !important; @@ -661,6 +671,10 @@ nav { border-radius: var(--inputRadius, $fallback--inputRadius); } +.button-icon { + font-size: 1.2em; +} + @keyframes shakeError { 0% { transform: translateX(0); @@ -705,16 +719,6 @@ nav { margin: 0.5em 0 0.5em 0; } - .button-icon { - font-size: 1.2em; - } - - .status .status-actions { - div { - max-width: 4em; - } - } - .menu-button { display: block; margin-right: 0.8em; @@ -723,7 +727,7 @@ nav { .login-hint { text-align: center; - + @media all and (min-width: 801px) { display: none; } diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index 7e972026e7..76affe2dbf 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 3f90caa99f..2366ddf7d1 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 e4a247c5f8..7394668c4d 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 fab2fe6254..fbbca6c49d 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 3fc5b486ce..46919d7c78 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -1,6 +1,6 @@