Skip to content

Commit

Permalink
Writer toolbar: hide when no buttons
Browse files Browse the repository at this point in the history
Fixes #6804
  • Loading branch information
distantnative committed Dec 17, 2024
1 parent 03462fa commit fb4a468
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion panel/src/components/Forms/Toolbar/Toolbar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<nav class="k-toolbar" :data-theme="theme">
<nav v-if="buttons.length" class="k-toolbar" :data-theme="theme">
<template v-for="(button, index) in buttons">
<hr v-if="button === '|'" :key="index" />

Expand Down
3 changes: 1 addition & 2 deletions panel/src/components/Forms/Writer/Toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,7 @@ export default {
</script>
<style>
/** TODO: .k-writer-input:has(.k-toolbar:not([data-inline="true"])) */
.k-writer-input:not([data-toolbar-inline="true"]):not([data-disabled="true"]) {
.k-writer:has(.k-toolbar:not([data-inline="true"], [data-disabled="true"])) {
grid-template-areas: "topbar" "content";
grid-template-rows: var(--toolbar-size) 1fr;
gap: 0;
Expand Down

0 comments on commit fb4a468

Please sign in to comment.