From cdeca18604bbb4a673b31648ae01f077e4317042 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Mon, 25 Mar 2019 22:43:34 +0500 Subject: [PATCH] Fix styles for desktop and mobile ui --- src/views/users/components/UsersFilter.vue | 8 ++++++-- src/views/users/index.vue | 17 ++++++++--------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/views/users/components/UsersFilter.vue b/src/views/users/components/UsersFilter.vue index 1fe8dbf7..20c76e80 100644 --- a/src/views/users/components/UsersFilter.vue +++ b/src/views/users/components/UsersFilter.vue @@ -2,8 +2,8 @@ @@ -47,6 +47,9 @@ export default { } }, computed: { + isDesktop() { + return this.$store.state.app.device === 'desktop' + }, isMobile() { return this.$store.state.app.device === 'mobile' } @@ -68,7 +71,8 @@ export default { only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) { .select-field { - width: 48%; + width: 100%; + margin-bottom: 5px; } } diff --git a/src/views/users/index.vue b/src/views/users/index.vue index baeaa1e5..4c2d37b1 100644 --- a/src/views/users/index.vue +++ b/src/views/users/index.vue @@ -174,7 +174,7 @@ export default {