UX: Improve styling, rename staff notes to user notes in translations

This commit is contained in:
Kris 2019-07-10 11:53:25 -04:00
parent bf6cfe7f5d
commit 9673e2cfc8
4 changed files with 25 additions and 11 deletions

View File

@ -1,7 +1,6 @@
{{#d-modal-body class="staff-notes-modal"}}
{{textarea value=newNote}}
{{d-button action="attachNote" label="staff_notes.attach" class="btn-primary" disabled=attachDisabled}}
<hr/>
{{#each model as |n|}}
<div class='staff-note'>

View File

@ -1,12 +1,19 @@
.modal-body.staff-notes-modal {
height: 300px;
#discourse-modal {
.modal-body.staff-notes-modal {
max-height: 80vh !important;
}
}
.modal-body.staff-notes-modal {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
textarea {
width: 98%;
@include breakpoint(mobile, min-width) {
min-width: 400px;
}
}
.posted-by {
@ -30,7 +37,15 @@
}
.staff-note {
margin-bottom: 1em;
border-top: 1px solid $primary-low;
padding-top: 1em;
&:first-of-type {
margin-top: 1em;
}
@include breakpoint(mobile, min-width) {
max-width: 530px;
}
}
.controls {

View File

@ -1,9 +1,9 @@
en:
js:
staff_notes:
title: "Staff Notes"
title: "User Notes"
attach: "Add User Note"
remove: "Remove Staff Note"
show: "Staff Notes ({{count}})"
delete_confirm: "Are you sure you want to delete that staff note?"
remove: "Remove User Note"
show: "User Notes ({{count}})"
delete_confirm: "Are you sure you want to delete that user note?"
show_post: "Show Post"

View File

@ -1,7 +1,7 @@
en:
site_settings:
staff_notes_enabled: "Allow staff users to attach notes to users"
staff_notes_moderators_delete: "Allow moderators to delete staff notes"
staff_notes_moderators_delete: "Allow moderators to delete user notes"
staff_notes:
official_warning: "Received an official warning from @%{username} -- %{warning_link}"
@ -10,8 +10,8 @@ en:
reports:
staff_notes:
title: "Staff notes"
description: "List most recent staff notes."
title: "User notes"
description: "List most recent user notes."
labels:
user: User
note: Note