From b138c1b4a06daf39c0ed579f69c6d27e3dcfb6bc Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Thu, 24 Mar 2022 12:00:41 +0100 Subject: [PATCH] Centralize attachmentName styling --- dev/Styles/@Main.less | 2 +- .../{Attachmnets.less => Attachments.less} | 30 ++++++++++--------- dev/Styles/User/Compose.less | 6 ---- 3 files changed, 17 insertions(+), 21 deletions(-) rename dev/Styles/User/{Attachmnets.less => Attachments.less} (95%) diff --git a/dev/Styles/@Main.less b/dev/Styles/@Main.less index 0c1b15a8b..41bd89fce 100644 --- a/dev/Styles/@Main.less +++ b/dev/Styles/@Main.less @@ -35,7 +35,7 @@ @import "User/OpenPgpKey.less"; @import "User/Identity.less"; @import "User/AdvancedSearch.less"; -@import "User/Attachmnets.less"; +@import "User/Attachments.less"; @import "User/MessageList.less"; @import "User/MessageView.less"; @import "User/Contacts.less"; diff --git a/dev/Styles/User/Attachmnets.less b/dev/Styles/User/Attachments.less similarity index 95% rename from dev/Styles/User/Attachmnets.less rename to dev/Styles/User/Attachments.less index 783924f79..4ef482afd 100644 --- a/dev/Styles/User/Attachmnets.less +++ b/dev/Styles/User/Attachments.less @@ -30,11 +30,6 @@ right: 6px; } - .attachmentSize { - font-size: 12px; - opacity: 0.5; - } - &.error { .iconMain, .iconPreview, .attachmentSize, .attachmentName { color: red; @@ -73,16 +68,23 @@ } .attachmentNameParent { - - position: relative; - - margin-left: 60px; - padding: 4px 4px 3px 6px; - min-width: 90px; - - cursor: pointer; - border-left: 1px solid #ddd; + cursor: pointer; + margin-left: 60px; + min-width: 90px; + padding: 4px 4px 3px 6px; + position: relative; + } + + .attachmentName { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + + .attachmentSize { + font-size: 12px; + opacity: 0.5; } .iconMain, .iconPreview { diff --git a/dev/Styles/User/Compose.less b/dev/Styles/User/Compose.less index c7294d7af..d49e51d85 100644 --- a/dev/Styles/User/Compose.less +++ b/dev/Styles/User/Compose.less @@ -36,12 +36,6 @@ padding: 10px; } - .attachmentName { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - } - .no-attachments-desc { padding-top: 50px; text-align: center;