Skip to content

Commit

Permalink
Merge pull request getkirby#4238 from getkirby/fix/4230-tabs-more
Browse files Browse the repository at this point in the history
Fix tabs resize for mobile
  • Loading branch information
bastianallgeier authored Mar 28, 2022
2 parents 88e5b68 + 2f7aa8f commit 41024a0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions panel/src/components/Layout/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,13 @@ export default {
}
},
watch: {
tabs(tabs) {
this.visibleTabs = tabs;
this.invisibleTabs = [];
this.resize(true);
tabs: {
handler(tabs) {
this.visibleTabs = tabs;
this.invisibleTabs = [];
this.resize(true);
},
immediate: true
}
},
created() {
Expand Down

0 comments on commit 41024a0

Please sign in to comment.