Skip to content

Commit

Permalink
Tweak css to match latest style changes from icon-action-toolbar pa…
Browse files Browse the repository at this point in the history
…ckage (#4)
  • Loading branch information
milewski authored Oct 21, 2023
1 parent e89f4dc commit e149b8f
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 298 deletions.
2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"nova:install": "npm --prefix='../../vendor/laravel/nova' ci"
},
"devDependencies": {
"@vue/compiler-sfc": "^3.2.22",
"@vue/compiler-sfc": "^3.3.6",
"laravel-mix": "^6.0.41",
"vue-loader": "^17.3.0"
}
Expand Down
22 changes: 9 additions & 13 deletions resources/js/components/Toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,19 @@

<div v-for="field of actions">

<Dropdown
<button
v-tooltip="field.batchEditable.tooltip || field.batchEditable.title || __(`Update :name`, { name: field.name })"
:handle-internal-clicks="false"
class="flex h-9 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-lg focus:ring-2"
:trigger-override-function="() => openModal(field)">
@click.stop="() => openModal(field)"
type="button"
class="hover:text-primary-500 inline-flex items-center justify-center w-9 h-9 focus:outline-none focus:ring ring-primary-200 dark:ring-gray-600 rounded-lg">

<div class="toolbar-button px-2">
<template v-if="field.batchEditable.icon.startsWith('<svg')">
<div v-html="field.batchEditable.icon"/>
</template>

<template v-if="field.batchEditable.icon.startsWith('<svg')">
<div v-html="field.batchEditable.icon"/>
</template>
<Icon v-else :type="field.batchEditable.icon"/>

<Icon v-else :type="field.batchEditable.icon"/>

</div>

</Dropdown>
</button>

</div>

Expand Down
Loading

0 comments on commit e149b8f

Please sign in to comment.