From be5f9d0088bd4c58db194717db7c30de63731893 Mon Sep 17 00:00:00 2001 From: "Luis Gustavo S. Barreto" Date: Wed, 2 Oct 2024 22:06:50 -0300 Subject: [PATCH] fix(ui): adjust spacing in AppLayout toolbar and logo alignment --- ui/src/layouts/AppLayout.vue | 21 ++++++----- ui/tests/layouts/AppLayout.spec.ts | 2 +- .../__snapshots__/AppLayout.spec.ts.snap | 36 +++++++++++-------- 3 files changed, 32 insertions(+), 27 deletions(-) diff --git a/ui/src/layouts/AppLayout.vue b/ui/src/layouts/AppLayout.vue index c3e77c1d503..96d6a8c4c64 100644 --- a/ui/src/layouts/AppLayout.vue +++ b/ui/src/layouts/AppLayout.vue @@ -12,22 +12,21 @@ class="bg-v-theme-surface" data-test="navigation-drawer" > - + + -
- -
+
-
+ +
diff --git a/ui/tests/layouts/AppLayout.spec.ts b/ui/tests/layouts/AppLayout.spec.ts index 77f4a09dc9e..bdc66ef5696 100644 --- a/ui/tests/layouts/AppLayout.spec.ts +++ b/ui/tests/layouts/AppLayout.spec.ts @@ -46,7 +46,7 @@ describe("App Layout Component", () => { it("Renders internal components", () => { expect(wrapper.find('[data-test="navigation-drawer"]').exists()).toBe(true); - expect(wrapper.find('[data-test="app-bar-title"]').exists()).toBe(true); + expect(wrapper.find('[data-test="drawer-toolbar"]').exists()).toBe(true); expect(wrapper.find('[data-test="logo"]').exists()).toBe(true); expect(wrapper.find('[data-test="list"]').exists()).toBe(true); expect(wrapper.find('[data-test="list-item"]').exists()).toBe(true); diff --git a/ui/tests/layouts/__snapshots__/AppLayout.spec.ts.snap b/ui/tests/layouts/__snapshots__/AppLayout.spec.ts.snap index 234611022d4..710d1ce6cb2 100644 --- a/ui/tests/layouts/__snapshots__/AppLayout.spec.ts.snap +++ b/ui/tests/layouts/__snapshots__/AppLayout.spec.ts.snap @@ -7,25 +7,31 @@ exports[`App Layout Component > Renders the component 1`] = `