Skip to content

Commit

Permalink
Merge pull request #2993 from tvdeyen/backport/7.2-stable/pr-2988
Browse files Browse the repository at this point in the history
[7.2-stable] Fix margin of alchemy-message in alchemy-dialog
  • Loading branch information
tvdeyen authored Aug 10, 2024
2 parents a83c45b + 3099b68 commit 5f37451
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/assets/stylesheets/alchemy/dialogs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,15 @@ $dialog-transition-duration: 150ms;
}

form,
.info.message {
.info.message,
alchemy-message[type="info"] {
position: absolute;
right: 2 * $default-padding;
width: 256px;
}

.info.message {
.info.message,
alchemy-message[type="info"] {
top: 2 * $default-padding;
margin: 0 0 0 8px;
padding: 0 8px 0 32px;
Expand Down Expand Up @@ -158,14 +160,16 @@ $dialog-transition-duration: 150ms;
position: relative;
color: $text-color;

.message {
.message,
alchemy-message {
margin: 8px;
}

&.padded {
padding: 4 * $default-padding;

.message {
.message,
alchemy-message {
margin: 0 0 8px 0;
}
}
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/alchemy/errors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@ body.error {
max-height: 100%;
overflow-y: scroll;
}

alchemy-message[type="error"] {
margin: 0;
}
}

0 comments on commit 5f37451

Please sign in to comment.