From 239c61095ad903b3ab3d1297a30285977d8a08e9 Mon Sep 17 00:00:00 2001
From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
Date: Thu, 25 Jul 2024 14:08:32 +0530
Subject: [PATCH] fix: Show add/import/export buttons in mobile view (#9761)
---
.../dashboard/contacts/components/Header.vue | 235 +++++++++---------
tailwind.config.js | 8 +
2 files changed, 121 insertions(+), 122 deletions(-)
diff --git a/app/javascript/dashboard/routes/dashboard/contacts/components/Header.vue b/app/javascript/dashboard/routes/dashboard/contacts/components/Header.vue
index cc992b43c..583ce5c6d 100644
--- a/app/javascript/dashboard/routes/dashboard/contacts/components/Header.vue
+++ b/app/javascript/dashboard/routes/dashboard/contacts/components/Header.vue
@@ -3,114 +3,120 @@
class="bg-white border-b dark:bg-slate-900 border-slate-50 dark:border-slate-800"
>
-
-
-
- {{ headerTitle }}
-
-
-
-
-
-
-
-
-
- {{ $t('CONTACTS_PAGE.SEARCH_BUTTON') }}
-
-
-
-
- {{ $t('CONTACTS_PAGE.FILTER_CONTACTS_EDIT') }}
-
-
- {{ $t('CONTACTS_PAGE.FILTER_CONTACTS_DELETE') }}
-
-
-
+
+
-
- {{ $t('CONTACTS_PAGE.FILTER_CONTACTS') }}
+
+
+ {{ headerTitle }}
+
+
+
+
+
+
+
+
+ {{ $t('CONTACTS_PAGE.SEARCH_BUTTON') }}
+
+
+
+
+
+
+ {{ $t('CONTACTS_PAGE.FILTER_CONTACTS_EDIT') }}
+
+
+ {{ $t('CONTACTS_PAGE.FILTER_CONTACTS_DELETE') }}
+
+
+
+
+
+ {{ $t('CONTACTS_PAGE.FILTER_CONTACTS') }}
+
+
+
+
+ {{ $t('CONTACTS_PAGE.FILTER_CONTACTS_SAVE') }}
+
+
+ {{ $t('CREATE_CONTACT.BUTTON_LABEL') }}
+
+
+
+ {{ $t('IMPORT_CONTACTS.BUTTON_LABEL') }}
+
+
+
+ {{ $t('EXPORT_CONTACTS.BUTTON_LABEL') }}
-
-
- {{ $t('CONTACTS_PAGE.FILTER_CONTACTS_SAVE') }}
-
-
- {{ $t('CREATE_CONTACT.BUTTON_LABEL') }}
-
-
-
- {{ $t('IMPORT_CONTACTS.BUTTON_LABEL') }}
-
-
-
- {{ $t('EXPORT_CONTACTS.BUTTON_LABEL') }}
-
-
-
diff --git a/tailwind.config.js b/tailwind.config.js
index 6600af6a4..f4b0793f6 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -20,6 +20,14 @@ module.exports = {
interDisplay: ['Inter Display', ...defaultTheme.fontFamily.sans],
},
},
+ screens: {
+ xs: '480px',
+ sm: '640px',
+ md: '768px',
+ lg: '1024px',
+ xl: '1280px',
+ '2xl': '1536px',
+ },
fontSize: {
...defaultTheme.fontSize,
xxs: '0.625rem',