mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: fix bookmark modal footer layout (#22766)
This commit is contained in:
parent
e503a4fc37
commit
ba91309cb8
@ -77,24 +77,22 @@
|
|||||||
</:body>
|
</:body>
|
||||||
|
|
||||||
<:footer>
|
<:footer>
|
||||||
<div class="control-group">
|
<DButton
|
||||||
|
id="save-bookmark"
|
||||||
|
@label="bookmarks.save"
|
||||||
|
class="btn-primary"
|
||||||
|
@action={{this.saveAndClose}}
|
||||||
|
/>
|
||||||
|
<DModalCancel @close={{action "closeWithoutSavingBookmark"}} />
|
||||||
|
{{#if this.showDelete}}
|
||||||
<DButton
|
<DButton
|
||||||
id="save-bookmark"
|
id="delete-bookmark"
|
||||||
@label="bookmarks.save"
|
@icon="trash-alt"
|
||||||
class="btn-primary"
|
class="delete-bookmark btn-danger"
|
||||||
@action={{this.saveAndClose}}
|
@action={{this.delete}}
|
||||||
|
@ariaLabel="post.bookmarks.actions.delete_bookmark.name"
|
||||||
|
@title="post.bookmarks.actions.delete_bookmark.name"
|
||||||
/>
|
/>
|
||||||
<DModalCancel @close={{action "closeWithoutSavingBookmark"}} />
|
{{/if}}
|
||||||
{{#if this.showDelete}}
|
|
||||||
<DButton
|
|
||||||
id="delete-bookmark"
|
|
||||||
@icon="trash-alt"
|
|
||||||
class="delete-bookmark btn-danger"
|
|
||||||
@action={{this.delete}}
|
|
||||||
@ariaLabel="post.bookmarks.actions.delete_bookmark.name"
|
|
||||||
@title="post.bookmarks.actions.delete_bookmark.name"
|
|
||||||
/>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
|
||||||
</:footer>
|
</:footer>
|
||||||
</DModal>
|
</DModal>
|
@ -135,7 +135,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not(.history-modal):not(.sidebar__edit-navigation-menu__modal) {
|
&:not(.bookmark-reminder-modal):not(.history-modal):not(
|
||||||
|
.sidebar__edit-navigation-menu__modal
|
||||||
|
) {
|
||||||
.modal-body:not(.reorder-categories):not(.poll-ui-builder):not(
|
.modal-body:not(.reorder-categories):not(.poll-ui-builder):not(
|
||||||
.poll-breakdown
|
.poll-breakdown
|
||||||
) {
|
) {
|
||||||
@ -157,17 +159,13 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 14px 15px 10px;
|
padding: 14px 15px 10px;
|
||||||
border-top: 1px solid var(--primary-low);
|
border-top: 1px solid var(--primary-low);
|
||||||
--btn-bottom-margin: 0.3em;
|
gap: 0.3em 0;
|
||||||
.btn {
|
.btn {
|
||||||
margin: 0 0.75em var(--btn-bottom-margin) 0;
|
margin: 0 0.75em 0 0;
|
||||||
&[href] {
|
&[href] {
|
||||||
min-height: unset;
|
min-height: unset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
|
||||||
margin-bottom: var(--btn-bottom-margin);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal {
|
.modal {
|
||||||
|
@ -6,8 +6,6 @@
|
|||||||
|
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border-top: 0;
|
|
||||||
padding: 0 1em 1em 1em;
|
|
||||||
|
|
||||||
.delete-bookmark {
|
.delete-bookmark {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
@ -22,6 +20,7 @@
|
|||||||
.modal-body {
|
.modal-body {
|
||||||
width: 375px;
|
width: 375px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
max-height: 70dvh;
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Loading…
Reference in New Issue
Block a user