Skip to content

Commit

Permalink
#386885: prevent spacer from shrinking to 0px if no other element is …
Browse files Browse the repository at this point in the history
…present (#127)
  • Loading branch information
innerjoin authored Aug 19, 2024
1 parent 2d15444 commit 826b0de
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content-elements/layout/spacer/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
require('./styles.scss');

module.exports = require('./prototype')();
8 changes: 8 additions & 0 deletions content-elements/layout/spacer/prototype/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@import "../../../../styles/properties";

@mixin styles($id: 'spacer-jarY9b') {
// ensure spacer is visible when no other items are present (e.g. in banner)
.bsi-ce-edit-mode .bsi-element-#{$id} {
min-width: 160px;
}
}
3 changes: 3 additions & 0 deletions content-elements/layout/spacer/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@use 'prototype/styles' as element;

@include element.styles();

0 comments on commit 826b0de

Please sign in to comment.