From 99e7717fec3495cf1e6c8476b8a1915a3d446233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ars=C3=A8ne=20Reymond?= <66876397+p0lycarpio@users.noreply.github.com> Date: Mon, 21 Aug 2023 20:41:18 +0200 Subject: [PATCH] UI/UX improvements (#2423) * disable autofocus and hide keyboard on enter * improve a11y * fix non-translated string * improve recipeTimeline UI * format * fixes --- .../Domain/Recipe/RecipeCardMobile.vue | 25 ++++-- .../Domain/Recipe/RecipeContextMenu.vue | 2 +- .../Domain/Recipe/RecipePage/RecipePage.vue | 2 +- .../Domain/Recipe/RecipeTimeline.vue | 7 +- .../Recipe/RecipeTimelineContextMenu.vue | 6 +- .../Domain/Recipe/RecipeTimelineItem.vue | 85 +++++++++++-------- frontend/components/Layout/AppHeader.vue | 4 +- frontend/lang/messages/en-US.json | 3 +- frontend/pages/index.vue | 13 ++- frontend/pages/login.vue | 9 +- 10 files changed, 95 insertions(+), 61 deletions(-) diff --git a/frontend/components/Domain/Recipe/RecipeCardMobile.vue b/frontend/components/Domain/Recipe/RecipeCardMobile.vue index c729b874c..7cfcb9197 100644 --- a/frontend/components/Domain/Recipe/RecipeCardMobile.vue +++ b/frontend/components/Domain/Recipe/RecipeCardMobile.vue @@ -2,24 +2,24 @@ - + - + - + - - {{ name }} + + {{ name }} @@ -120,7 +120,11 @@ export default defineComponent({ vertical: { type: Boolean, default: false, - } + }, + isFlat: { + type: Boolean, + default: false, + }, }, setup() { const { $auth } = useContext(); @@ -162,4 +166,9 @@ export default defineComponent({ .text-top { align-self: start !important; } + +.flat { + box-shadow: none!important; + background-color: transparent; +} diff --git a/frontend/components/Domain/Recipe/RecipeContextMenu.vue b/frontend/components/Domain/Recipe/RecipeContextMenu.vue index 32ad0fb1e..9134e8934 100644 --- a/frontend/components/Domain/Recipe/RecipeContextMenu.vue +++ b/frontend/components/Domain/Recipe/RecipeContextMenu.vue @@ -149,7 +149,7 @@ :nudge-top="menuTop ? '5' : '0'" allow-overflow close-delay="125" - open-on-hover + :open-on-hover="$vuetify.breakpoint.mdAndUp" content-class="d-print-none" > @@ -191,3 +196,9 @@ export default defineComponent({ }, }); + + \ No newline at end of file diff --git a/frontend/components/Layout/AppHeader.vue b/frontend/components/Layout/AppHeader.vue index 8594548b6..1f5feb937 100644 --- a/frontend/components/Layout/AppHeader.vue +++ b/frontend/components/Layout/AppHeader.vue @@ -26,7 +26,7 @@ dense flat :prepend-inner-icon="$globals.icons.search" - background-color="primary lighten-1" + background-color="primary darken-1" color="white" :placeholder="$t('search.search-hint')" > @@ -35,7 +35,7 @@ {{ $globals.icons.search }} - + {{ $globals.icons.logout }} {{ $vuetify.breakpoint.smAndUp ? $t("user.logout") : "" }} diff --git a/frontend/lang/messages/en-US.json b/frontend/lang/messages/en-US.json index e41cc45c0..77fa41a18 100644 --- a/frontend/lang/messages/en-US.json +++ b/frontend/lang/messages/en-US.json @@ -531,6 +531,7 @@ "recipe-yield": "Recipe Yield", "unit": "Unit", "upload-image": "Upload image", + "screen-awake": "Keep Screen Awake", "remove-image": "Remove image" }, "search": { @@ -1114,4 +1115,4 @@ "cookbook-name": "Cookbook Name", "cookbook-with-name": "Cookbook {0}" } -} +} \ No newline at end of file diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue index a306e8524..78bae22a4 100644 --- a/frontend/pages/index.vue +++ b/frontend/pages/index.vue @@ -4,14 +4,15 @@