From 57a180dc00583d5ef9d6cb2347dc32e992ae6fc0 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Tue, 12 Mar 2019 14:27:06 +0100 Subject: [PATCH 1/2] UI: Don't set font-size on node-details-description. This is used for comments, nodes, everywhere. So each component should set its own size. --- src/styles/_utils.sass | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/styles/_utils.sass b/src/styles/_utils.sass index 15cd33ce..2615cdb7 100644 --- a/src/styles/_utils.sass +++ b/src/styles/_utils.sass @@ -373,12 +373,8 @@ =node-details-description color: $color-text - font-size: 1.25em word-break: break-word - +media-xs - font-size: 1.1em - /* Style links without a class. Usually regular * links in a comment or node description. */ a:not([class]) From 69251de995dd1d1d8a89cdd57a1b26241d3d84a7 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Tue, 12 Mar 2019 14:27:29 +0100 Subject: [PATCH 2/2] UI: Set max-width variable for select2. --- src/styles/plugins/_js_select2.sass | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/styles/plugins/_js_select2.sass b/src/styles/plugins/_js_select2.sass index 26776b4a..d1b66fb1 100644 --- a/src/styles/plugins/_js_select2.sass +++ b/src/styles/plugins/_js_select2.sass @@ -1,7 +1,7 @@ @import ../config +$select2-dropdown-width: 180px .select2-container - width: 100% !important box-sizing: border-box display: inline-block margin: 0 @@ -20,9 +20,8 @@ display: block padding-left: 8px padding-right: 20px - overflow: hidden - text-overflow: ellipsis - white-space: nowrap + +text-overflow-ellipsis + max-width: $select2-dropdown-width .select2-selection__clear position: relative