Skip to content

Commit 26ec9cc

Browse files
Merge pull request #295 from devforth/AdminForth/749
feat: add unique classes to the af logo, title and resource parent
2 parents 7071761 + 632ea35 commit 26ec9cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

adminforth/spa/src/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@
7777
aria-label="Sidebar"
7878
>
7979
<div class="h-full px-3 pb-4 overflow-y-auto bg-lightSidebar dark:bg-darkSidebar border-r border-lightSidebarBorder dark:border-darkSidebarBorder">
80-
<div class="flex ms-2 m-4">
81-
<img :src="loadFile(coreStore.config?.brandLogo || '@/assets/logo.svg')" :alt="`${ coreStore.config?.brandName } Logo`" class="h-8 me-3" />
80+
<div class="af-logo-title-wrapper flex ms-2 m-4">
81+
<img :src="loadFile(coreStore.config?.brandLogo || '@/assets/logo.svg')" :alt="`${ coreStore.config?.brandName } Logo`" class="af-logo h-8 me-3" />
8282
<span
8383
v-if="coreStore.config?.showBrandNameInSidebar"
84-
class="self-center text-lightNavbarText-size font-semibold sm:text-lightNavbarText-size whitespace-nowrap dark:text-darkSidebarText text-lightSidebarText"
84+
class="af-title self-center text-lightNavbarText-size font-semibold sm:text-lightNavbarText-size whitespace-nowrap dark:text-darkSidebarText text-lightSidebarText"
8585
>
8686
{{ coreStore.config?.brandName }}
8787
</span>

adminforth/spa/src/views/ResourceParent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div :key="`${$route?.params.resourceId}---${$route?.params.primaryKey}`" class="p-4 flex"
2+
<div :key="`${$route?.params.resourceId}---${$route?.params.primaryKey}`" class="af-resource-parent p-4 flex"
33
:class="limitHeightToPage ? 'h-[calc(100dvh-3.5rem)]': undefined"
44
>
55
<RouterView/>

0 commit comments

Comments
 (0)