From bb32f3a935eb7dbcc2321aa6ae14845d42ec70d9 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Mon, 29 May 2023 16:34:07 +0200 Subject: [PATCH] Improve bottom action toolbar responsiveness [SCI-8550] --- .../stylesheets/shared/action_toolbar.scss | 2 +- app/javascript/packs/vue/action_toolbar.js | 1 + .../vue/components/action_toolbar.vue | 33 ++++++++++++++++--- 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/shared/action_toolbar.scss b/app/assets/stylesheets/shared/action_toolbar.scss index 7d75f18c0..8ce232d7e 100644 --- a/app/assets/stylesheets/shared/action_toolbar.scss +++ b/app/assets/stylesheets/shared/action_toolbar.scss @@ -21,7 +21,7 @@ } } -@media (max-width: 1000px) { +.sn-action-toolbar--button-overflow { .sn-action-toolbar__button-text { display: none; } diff --git a/app/javascript/packs/vue/action_toolbar.js b/app/javascript/packs/vue/action_toolbar.js index d8d4ddcbc..f2ba89a82 100644 --- a/app/javascript/packs/vue/action_toolbar.js +++ b/app/javascript/packs/vue/action_toolbar.js @@ -5,6 +5,7 @@ import Vue from 'vue/dist/vue.esm'; import ActionToolbar from '../../vue/components/action_toolbar.vue'; Vue.use(TurbolinksAdapter); +Vue.prototype.i18n = window.I18n; window.initActionToolbar = () => { if (window.actionToolbarComponent) return; diff --git a/app/javascript/vue/components/action_toolbar.vue b/app/javascript/vue/components/action_toolbar.vue index 4112fa62e..d6f6746ad 100644 --- a/app/javascript/vue/components/action_toolbar.vue +++ b/app/javascript/vue/components/action_toolbar.vue @@ -1,5 +1,8 @@