FIX: improves moderation tab on mobile (#6122)

This commit is contained in:
Joffrey JAFFEUX 2018-07-19 23:59:52 -04:00 committed by GitHub
parent 4698cccbcf
commit d75d1f0b51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 100 additions and 74 deletions

View File

@ -125,3 +125,77 @@
}
}
}
.admin-report.activity-metrics {
table {
table-layout: auto;
}
}
.admin-report.users-by-type {
margin-top: 1em;
}
.admin-report.users-by-type,
.admin-report.users-by-trust-level {
margin-bottom: 1em;
flex: 1;
.report-header {
border-bottom: 1px solid $primary-medium;
padding-bottom: 0.5em;
border-bottom: 1px solid #e9e9e9;
}
}
.admin-report.moderators-activity {
tbody tr td.username,
thead tr th.username {
text-align: left;
}
}
.admin-report.trending-search {
tbody tr td.term,
thead tr th.term {
text-align: left;
}
}
.admin-report.top-traffic-sources {
tbody tr td.domain,
thead tr th.domain {
text-align: left;
}
}
.admin-report.post-edits {
.admin-report-table {
table-layout: auto;
tbody tr td,
thead tr th {
text-align: left;
}
thead tr th.edit_reason,
tbody tr td.edit_reason {
width: 60%;
}
}
}
.admin-report.flags-status {
.admin-report-table {
table-layout: auto;
tbody tr td,
thead tr th {
text-align: left;
}
tbody tr td.response_time,
thead tr th.response_time {
text-align: center;
}
}
}

View File

@ -452,80 +452,6 @@
margin-bottom: 1em;
}
.admin-report.activity-metrics {
table {
table-layout: auto;
}
}
.admin-report.users-by-type {
margin-top: 1em;
}
.admin-report.users-by-type,
.admin-report.users-by-trust-level {
margin-bottom: 1em;
flex: 1;
.report-header {
border-bottom: 1px solid $primary-medium;
padding-bottom: 0.5em;
border-bottom: 1px solid #e9e9e9;
}
}
.admin-report.moderators-activity {
tbody tr td.username,
thead tr th.username {
text-align: left;
}
}
.admin-report.trending-search {
tbody tr td.term,
thead tr th.term {
text-align: left;
}
}
.admin-report.top-traffic-sources {
tbody tr td.domain,
thead tr th.domain {
text-align: left;
}
}
.admin-report.post-edits {
.admin-report-table {
table-layout: auto;
tbody tr td,
thead tr th {
text-align: left;
}
thead tr th.edit_reason,
tbody tr td.edit_reason {
width: 60%;
}
}
}
.admin-report.flags-status {
.admin-report-table {
table-layout: auto;
tbody tr td,
thead tr th {
text-align: left;
}
tbody tr td.response_time,
thead tr th.response_time {
text-align: center;
}
}
}
.dashboard-next.moderation {
.admin-dashboard-moderation-top {
display: grid;

View File

@ -22,6 +22,8 @@
@import "mobile/ring";
@import "mobile/group";
@import "mobile/groups";
@import "mobile/admin_report";
@import "mobile/admin_report_table";
// Import all component-specific files
@import "mobile/components/*";

View File

@ -0,0 +1,10 @@
.admin-report.post-edits {
.admin-report-table {
.report-table {
thead tr th.edit_reason,
tbody tr td.edit_reason {
width: auto;
}
}
}
}

View File

@ -0,0 +1,14 @@
.admin-report-table {
.report-table {
table-layout: fixed;
thead tr th {
font-weight: normal;
font-size: $font-down-2;
white-space: unset;
.sort-button {
display: none;
}
}
}
}