From fdbc11a288f9fe9aac36017366b5817a05f4fbbf Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Mon, 10 Oct 2022 17:23:22 +0200 Subject: [PATCH] fix(editor): change horizontal scrollbar rendering in various places (#4282) * fix(editor-ui): workflow templates carousel scroll * fix(design-system): prevent visible scrollbar on Tags * fix(editor): add types to component prop * fix(editor): add types to component prop --- .../design-system/src/components/N8nTags/Tags.vue | 11 +++++++++++ .../src/components/CollectionsCarousel.vue | 15 ++++----------- .../editor-ui/src/components/TemplateDetails.vue | 6 +++--- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/packages/design-system/src/components/N8nTags/Tags.vue b/packages/design-system/src/components/N8nTags/Tags.vue index 4e690c2b7d..52a3b304cc 100644 --- a/packages/design-system/src/components/N8nTags/Tags.vue +++ b/packages/design-system/src/components/N8nTags/Tags.vue @@ -25,6 +25,17 @@ export default Vue.extend({ .tags { display: flex; flex-wrap: wrap; + overflow-x: scroll; + + /* Hide scrollbar for Chrome, Safari and Opera */ + &::-webkit-scrollbar { + display: none; + } + + /* Hide scrollbar for IE, Edge and Firefox */ + -ms-overflow-style: none; /* IE and Edge */ + scrollbar-width: none; /* Firefox */ + * { margin: 0 var(--spacing-4xs) var(--spacing-4xs) 0; diff --git a/packages/editor-ui/src/components/CollectionsCarousel.vue b/packages/editor-ui/src/components/CollectionsCarousel.vue index 5022803570..9066120013 100644 --- a/packages/editor-ui/src/components/CollectionsCarousel.vue +++ b/packages/editor-ui/src/components/CollectionsCarousel.vue @@ -19,6 +19,8 @@