From 9b156e63c3b55d5e222d42fd6cdd29d72449c6e0 Mon Sep 17 00:00:00 2001 From: "Luis Gustavo S. Barreto" Date: Fri, 27 Sep 2024 19:34:17 -0300 Subject: [PATCH] refactor(ui): improve sidebar item list structure * Refactored the list item structure in AppLayout to use prepend and append slots. * Moved the crown icon to the append slot for better alignment. --- ui/src/layouts/AppLayout.vue | 40 +++--- .../__snapshots__/AppLayout.spec.ts.snap | 126 +++++++++--------- 2 files changed, 78 insertions(+), 88 deletions(-) diff --git a/ui/src/layouts/AppLayout.vue b/ui/src/layouts/AppLayout.vue index a06b960bfc6..470fb176349 100644 --- a/ui/src/layouts/AppLayout.vue +++ b/ui/src/layouts/AppLayout.vue @@ -33,7 +33,7 @@ - + - - -
-
- - {{ item.icon }} - -
- {{ item.title }} - Premium - -
-
- + + +
diff --git a/ui/tests/layouts/__snapshots__/AppLayout.spec.ts.snap b/ui/tests/layouts/__snapshots__/AppLayout.spec.ts.snap index 8d78eadcee2..234611022d4 100644 --- a/ui/tests/layouts/__snapshots__/AppLayout.spec.ts.snap +++ b/ui/tests/layouts/__snapshots__/AppLayout.spec.ts.snap @@ -27,103 +27,103 @@ exports[`App Layout Component > Renders the component 1`] = ` -