From 393c801426d1ae4046934b1d649d32db2b815e7a Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Wed, 1 Feb 2023 02:29:51 -0800 Subject: [PATCH] Closes #6215 (#6222) - Markup cleanups, CSS placement improvements for tags. - Better approach to tag layout. - CSS prop migrated to _constants.scss. - Style and layout improvements for `.c-autocomplete*` input. Co-authored-by: Scott Bell --- .../notebook/components/NotebookEntry.vue | 2 +- src/styles/_constants.scss | 2 +- src/styles/_controls.scss | 9 +- src/ui/components/tags/TagEditor.vue | 3 +- src/ui/components/tags/TagSelection.vue | 9 +- src/ui/components/tags/tags.scss | 84 ++++++++++++++----- .../annotations/AnnotationsInspectorView.vue | 2 +- 7 files changed, 78 insertions(+), 33 deletions(-) diff --git a/src/plugins/notebook/components/NotebookEntry.vue b/src/plugins/notebook/components/NotebookEntry.vue index 8d1c3a15b0..7a375b505a 100644 --- a/src/plugins/notebook/components/NotebookEntry.vue +++ b/src/plugins/notebook/components/NotebookEntry.vue @@ -99,7 +99,7 @@ -
+
-
+
-
-
+
+ +
diff --git a/src/ui/components/tags/tags.scss b/src/ui/components/tags/tags.scss index 964b2361ab..23157937e3 100644 --- a/src/ui/components/tags/tags.scss +++ b/src/ui/components/tags/tags.scss @@ -1,19 +1,30 @@ +@mixin tagHolder() { + align-items: center; + display: flex; + flex-wrap: wrap; + + > * { + $m: $interiorMarginSm; + + margin: 0 $m $m 0; + } +} + + /******************************* TAGS */ .c-tag { - border-radius: 10px; //TODO: convert to theme constant + border-radius: $tagBorderRadius; display: inline-flex; - padding: 1px 10px; //TODO: convert to theme constant - - > * + * { - margin-left: $interiorMargin; - } + overflow: hidden; + padding: 1px 6px; //TODO: convert to theme constant + transition: $transIn; &__remove-btn { color: inherit !important; - display: none; opacity: 0; - overflow: hidden; - padding: 1px !important; + padding: 0; // Overrides default