From c48e61e3386dff7d7fb5e80afea44a7110b5c211 Mon Sep 17 00:00:00 2001 From: shpuld Date: Sun, 24 Feb 2019 20:50:11 +0200 Subject: [PATCH] Improvements in reply row --- src/components/status/status.js | 2 + src/components/status/status.vue | 124 ++++++++++++++----------------- 2 files changed, 59 insertions(+), 67 deletions(-) diff --git a/src/components/status/status.js b/src/components/status/status.js index 65ddcb9f..f295c24d 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -316,6 +316,7 @@ const Status = { } }, replyEnter (id, event) { + console.log('replyEnter', id) this.showPreview = true const targetId = id const statuses = this.$store.state.statuses.allStatuses @@ -334,6 +335,7 @@ const Status = { } }, replyLeave () { + console.log('replyLeave') this.showPreview = false }, generateUserProfileLink (id, name) { diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 5b16df81..78963bc0 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -36,51 +36,54 @@ -
-
-

-

{{status.user.name}}

- +
+
+

+

{{status.user.name}}

+ - - - - -
- -
- - - - - -
-
-
- - - Reply to + + + + +
+ +
+
+ - - - {{replyToName}} - - -
-

- Replies: - - {{reply.name}}  - -

+ + +
- +
+ + + Reply to + + + {{replyToName}} + +
+

+ Replies: + + {{reply.name}}  + +

+
@@ -235,7 +238,6 @@ .media-body { flex: 1; padding: 0; - // margin: 0 0 0.25em 0.8em; } .usercard { @@ -250,7 +252,6 @@ flex-shrink: 0; max-width: 85%; font-weight: bold; - // margin-right: .2em; img { width: 14px; @@ -266,8 +267,6 @@ flex-basis: 100%; margin-bottom: 0.5em; - // line-height: 2em; - a { display: inline-block; word-break: break-all; @@ -312,32 +311,28 @@ color: $fallback--link; color: var(--link, $fallback--link); max-width: 100%; + display: flex; + overflow: hidden; a { max-width: 100%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } - & > span { - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - } - & > a:last-child { - flex-shrink: 0; - } - } - .reply-to-text { - // margin-right: 0.5em; } .reply-info { display: flex; } - .replies { - line-height: 16px; + .reply-to { + display: flex; + text-overflow: ellpisis; } - .reply-link { - //margin-right: 0.2em; + .reply-to-text { + overflow: hidden; + text-overflow: ellipsis; + } + .replies { + line-height: 18px; } } @@ -345,19 +340,14 @@ display: inline-flex; flex-shrink: 0; flex-wrap: nowrap; - // margin-left: .25em; align-self: baseline; .timeago { - // margin-right: 0.2em; font-size: 12px; flex: 1 0; align-self: last baseline; } - > * { - // margin-left: 0.2em; - } a:hover i { color: $fallback--text; color: var(--text, $fallback--text); @@ -396,8 +386,8 @@ } .status-content { - // margin-right: 0.5em; font-family: var(--postFont, sans-serif); + line-height: 1.4em; img, video { max-width: 100%;