Tweak comment warnings (#7102)

* Make "Are you sure?" on comment reply deletion correct size

* Update wording of warning after editing comment

* Tighten up height of comment warnings
pull/7106/head
Karl Hobley 2021-04-26 15:51:17 +01:00 zatwierdzone przez GitHub
rodzic f6a35c719a
commit 331a4f5719
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
6 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -519,7 +519,7 @@ export default class CommentComponent extends React.Component<CommentProps> {
// Save the page to add this comment
notice = strings.SAVE_PAGE_TO_ADD_COMMENT;
} else if (comment.text !== comment.originalText) {
// Save the page to save changes to this comment
// Save the page to save this comment
notice = strings.SAVE_PAGE_TO_SAVE_COMMENT_CHANGES;
} else if (hasUnsavedReplies) {
// Save the page to save replies

Wyświetl plik

@ -54,7 +54,7 @@
&__error {
color: $color-box-text;
font-weight: bold;
font-size: 0.8em;
font-size: 13px;
button {
margin-left: 10px;

Wyświetl plik

@ -108,7 +108,7 @@ $box-border-radius: 5px;
}
&__notice-placeholder {
padding-bottom: 60px;
padding-bottom: 40px;
}
&__notice {
@ -117,7 +117,7 @@ $box-border-radius: 5px;
left: 0;
bottom: 0;
width: 100%;
padding: 10px;
padding: 5px 10px;
box-sizing: border-box;
border-bottom-left-radius: $box-border-radius;
border-bottom-right-radius: $box-border-radius;

Wyświetl plik

@ -68,7 +68,7 @@ export const defaultStrings = {
SAVE_ERROR: 'Save error',
MORE_ACTIONS: 'More actions',
SAVE_PAGE_TO_ADD_COMMENT: 'Save the page to add this comment',
SAVE_PAGE_TO_SAVE_COMMENT_CHANGES: 'Save the page to save changes to this comment',
SAVE_PAGE_TO_SAVE_COMMENT_CHANGES: 'Save the page to save this comment',
SAVE_PAGE_TO_SAVE_REPLY: 'Save the page to save replies',
};

Wyświetl plik

@ -63,7 +63,7 @@ global.wagtailConfig = {
FOCUS_COMMENT: 'Focus comment',
UNFOCUS_COMMENT: 'Unfocus comment',
SAVE_PAGE_TO_ADD_COMMENT: 'Save the page to add this comment',
SAVE_PAGE_TO_SAVE_COMMENT_CHANGES: 'Save the page to save changes to this comment',
SAVE_PAGE_TO_SAVE_COMMENT_CHANGES: 'Save the page to save this comment',
SAVE_PAGE_TO_SAVE_REPLY: 'Save the page to save replies',
},
WAGTAIL_I18N_ENABLED: true,

Wyświetl plik

@ -95,7 +95,7 @@ def get_js_translation_strings():
'COMMENT': _('Comment'),
'MORE_ACTIONS': _('More actions'),
'SAVE_PAGE_TO_ADD_COMMENT': _('Save the page to add this comment'),
'SAVE_PAGE_TO_SAVE_COMMENT_CHANGES': _('Save the page to save changes to this comment'),
'SAVE_PAGE_TO_SAVE_COMMENT_CHANGES': _('Save the page to save this comment'),
'SAVE_PAGE_TO_SAVE_REPLY': _('Save the page to save replies'),
'MONTHS': [str(m) for m in MONTHS.values()],