Skip to content

Commit a1c3f5b

Browse files
committed
Fix tab overflow dropdown in LivePreview pane
1 parent ad0c05b commit a1c3f5b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

resources/js/components/live-preview/LivePreview.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ export default {
250250
.then(() => {
251251
this.panesVisible = true;
252252
return this.$wait(300);
253+
})
254+
.then(() => {
255+
// Components that update position based on native
256+
// resize events (like Popovers) need to be informed thusly
257+
window.dispatchEvent(new Event('resize'));
253258
});
254259
},
255260

resources/sass/components/preview.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@
2727

2828
.live-preview .publish-tabs {
2929
@apply bg-grey-30 ml-0 pl-0;
30-
a {
30+
.tab-button {
3131
border-radius: 0;
3232
height: 100%;
3333
min-width: 100px;
3434
border: none;
3535
}
3636
}
3737

38+
.live-preview .tabs-container {
39+
@apply bg-grey-30;
40+
}
41+
3842
.live-preview .publish-section-actions-footer {
3943
display: none;
4044
}

0 commit comments

Comments
 (0)