Skip to content

Commit d6cdd3b

Browse files
authored
fix: prevent content from collapsing when empty (#74)
1 parent bc8eb76 commit d6cdd3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vue-horizontal.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,9 @@ export default Vue.extend({
340340
.v-hl-container > * {
341341
flex-shrink: 0;
342342
box-sizing: border-box;
343+
344+
/* Prevent content from collapsing when empty. E.g. image while loading height=0. */
345+
min-height: 1px;
343346
}
344347
345348
.v-hl-snap-start > * {

0 commit comments

Comments
 (0)