Skip to content

Commit

Permalink
Fix labels and colors not rendering properly (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
milewski authored Nov 16, 2023
1 parent 5c6ca50 commit def3ffb
Show file tree
Hide file tree
Showing 6 changed files with 564 additions and 550 deletions.
2 changes: 1 addition & 1 deletion dist/css/tool.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"nova:install": "npm --prefix='../../vendor/laravel/nova' ci"
},
"devDependencies": {
"@vue/compiler-sfc": "^3.3.7",
"@vue/compiler-sfc": "^3.3.8",
"laravel-mix": "^6.0.41",
"mix-tailwindcss": "^1.3.0",
"sass": "^1.69.4",
"sass": "^1.69.5",
"sass-loader": "^13.3.2",
"tailwindcss": "^3.3.5",
"vue-loader": "^17.3.0"
"vue-loader": "^17.3.1"
}
}
12 changes: 6 additions & 6 deletions resources/js/components/IconActionToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
type="button"
@click.stop="() => $emit('click', uriKey)"
:class="{
'dark:text-gray-400 dark:hover:text-primary-500': parentType === 'ActionSelector',
'h-9 w-9': !isDetailView && !standalone,
'dark:hover:text-primary-500': parentType === 'ActionSelector',
'h-9 w-auto': !isDetailView && !standalone,
'hover:text-red-500': destructive && !isDetailView,
'hover:text-primary-500': !destructive && !isDetailView,
'rounded hover:bg-gray-200 dark:hover:bg-gray-800 focus:outline-none focus:ring px-3 hover:text-gray-400': standalone && isDetailView
'dark:hover:text-primary-500 hover:text-primary-500': !destructive && !isDetailView,
'rounded hover:bg-gray-200 dark:hover:bg-gray-800 focus:outline-none focus:ring px-3 hover:text-gray-500': standalone && isDetailView
}"
class="toolbar-button px-2 disabled:opacity-50 disabled:pointer-events-none">
class="toolbar-button dark:text-gray-400 text-gray-500 px-2 disabled:opacity-50 disabled:pointer-events-none">

<Icon v-if="typeof iconActionToolbar.icon !== 'string'" name="cube-transparent"/>

Expand All @@ -28,7 +28,7 @@

<Icon v-else-if="iconActionToolbar.icon" :name="iconActionToolbar.icon"/>

<div class="ml-1" v-if="iconActionToolbar.label">
<div class="ml-1 whitespace-nowrap" v-if="iconActionToolbar.label">
{{ iconActionToolbar.label }}
</div>

Expand Down
2 changes: 0 additions & 2 deletions resources/js/tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import ActionSelector from './components/ActionSelector.vue'
import ActionDropdown from './components/ActionDropdown.vue'

Nova.booting(app => {

app.component('ActionSelector', ActionSelector)
app.component('ActionDropdown', ActionDropdown)

})
Loading

0 comments on commit def3ffb

Please sign in to comment.