Skip to content

Commit

Permalink
Merge pull request #56 from Muetze42/development
Browse files Browse the repository at this point in the history
feat: add component class for more style flexibility
  • Loading branch information
Muetze42 authored Nov 26, 2024
2 parents 41c1e59 + 5d88805 commit 62fc758
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"/js/tool.js": "/js/tool.js?id=6d2963b95b1029c41300eba98761f83a"
"/js/tool.js": "/js/tool.js?id=4ce4abf1d3f887e7bcd9c3fe22bf9a74"
}
4 changes: 2 additions & 2 deletions resources/js/components/MenuGroup.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div v-if="item.items.length > 0" :class="item.classes.filterClass">
<div v-if="item.items.length > 0" :class="item.classes.filterClass" class="menu-group">
<h4 @click.prevent="handleClick" class="flex items-center px-1 py-1 rounded text-left text-gray-500" :class="[{
'cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-800':
displayAsButton,
Expand Down Expand Up @@ -31,7 +31,7 @@
</template>

<script>
import Collapsable from './../../../vendor/laravel/nova/resources/js/mixins/Collapsable.js'
import Collapsable from './../../../../vendor/laravel/nova/resources/js/mixins/Collapsable.js'
export default {
mixins: [Collapsable],
Expand Down
2 changes: 2 additions & 0 deletions resources/js/components/MenuIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:height="icons.height"
:width="icons.height"
:class="icons.classes.icon"
class="sidebar-hero-icon"
/>
<i
class="sidebar-fa-icon"
Expand All @@ -24,6 +25,7 @@
alt="Icon"
:class="icons.classes.icon"
:style="{maxHeight: icons.height + 'px'}"
class="sidebar-image-icon"
/>
</template>

Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/MenuItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<component
:is="component"
v-bind="linkAttributes"
class="w-full flex min-h-8 px-1 py-1 rounded text-left text-gray-500 dark:text-gray-500 focus:outline-none focus:ring focus:ring-primary-200 dark:focus:ring-gray-600 cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-800"
class="menu-item w-full flex min-h-8 px-1 py-1 rounded text-left text-gray-500 dark:text-gray-500 focus:outline-none focus:ring focus:ring-primary-200 dark:focus:ring-gray-600 cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-800"
:data-active-link="item.active"
v-tooltip.click="item.tooltip"
:class="[{
Expand Down
4 changes: 2 additions & 2 deletions resources/js/components/MenuSection.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="relative" v-if="item.path || item.items.length > 0" :class="item.classes.filterClass">
<div class="menu-section relative" v-if="item.path || item.items.length > 0" :class="item.classes.filterClass">
<component :is="component" :href="item.path ?? null" @click.prevent="handleClick"
:tabindex="displayAsButton ? 0 : null"
class="w-full flex items-start px-1 py-1 rounded text-left text-gray-500 dark:text-gray-500 focus:outline-none focus:ring focus:ring-primary-200 dark:focus:ring-gray-600"
Expand Down Expand Up @@ -39,7 +39,7 @@
</template>

<script>
import Collapsable from './../../../vendor/laravel/nova/resources/js/mixins/Collapsable.js'
import Collapsable from './../../../../vendor/laravel/nova/resources/js/mixins/Collapsable.js'
import { mapGetters, mapMutations } from 'vuex'
export default {
Expand Down

0 comments on commit 62fc758

Please sign in to comment.