Skip to content

Commit

Permalink
Fix responsive k-header for many buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Jul 20, 2024
1 parent 0cf3f75 commit 18c06d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions panel/lab/components/headers/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,16 @@
</k-button-group>
</k-header>
</k-lab-example>
<k-lab-example label="long title & many buttons">
<k-header :editable="true">
This is a rather long title that still should not cause any issues
<k-button-group slot="buttons">
<k-button icon="open" variant="filled" />
<k-button icon="cog" variant="filled" />
<k-button icon="heart" text="Favorite" variant="filled" />
<k-button icon="star" text="Bookmark" variant="filled" />
</k-button-group>
</k-header>
</k-lab-example>
</k-lab-examples>
</template>
2 changes: 1 addition & 1 deletion panel/src/components/Layout/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default {
flex-wrap: wrap;
align-items: baseline;
justify-content: space-between;
column-gap: var(--spacing-3);
border-bottom: 1px solid var(--color-border);
background: var(--header-color-back);
padding-top: var(--header-padding-block);
Expand Down Expand Up @@ -123,7 +124,6 @@ export default {
.k-header-buttons {
display: flex;
flex-shrink: 0;
gap: var(--spacing-2);
margin-bottom: var(--header-padding-block);
}
Expand Down

0 comments on commit 18c06d7

Please sign in to comment.