Skip to content

Commit

Permalink
fix(ui): texthighlight block to full-width & -4rem
Browse files Browse the repository at this point in the history
  • Loading branch information
RaneHyv committed Mar 7, 2024
1 parent 6d32fcb commit 9b03629
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/blocks/TextHighlight/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const installTextHighlightBlock = (config) => {
view: (props) => {
const text = props.data.plaintext.trim() || '';
return text ? (
<div className="block text-highlight">
<div className="block full-width text-highlight">
<Container>
<TextBlockView {...props} />
</Container>
Expand Down
3 changes: 2 additions & 1 deletion frontend/theme/extras/blocks/textHighlight.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
min-height: 70px;
align-items: center;
justify-content: center;
margin-top: -1rem;
margin-top: -3rem;
margin-bottom: 3rem;
background-color: @highlightColor;

&:not(.edit-mode) {
min-height: 70px;
margin-top: -4rem;
}

.text-slate-editor-inner {
Expand Down

0 comments on commit 9b03629

Please sign in to comment.