From c1dfdd3bbe48b3dd3a3d592a486774f079a3567b Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Fri, 4 Dec 2020 01:37:56 +0300 Subject: [PATCH] Add mobile UI for single report show page --- .../components/ModerateUserDropdown.vue | 5 +- .../reports/components/ReportContent.vue | 11 +++ src/views/reports/show.vue | 71 ++++++++++++++++--- 3 files changed, 78 insertions(+), 9 deletions(-) diff --git a/src/views/reports/components/ModerateUserDropdown.vue b/src/views/reports/components/ModerateUserDropdown.vue index 3d5618f1..6c93ca82 100644 --- a/src/views/reports/components/ModerateUserDropdown.vue +++ b/src/views/reports/components/ModerateUserDropdown.vue @@ -1,6 +1,6 @@ @@ -46,6 +58,9 @@ export default { name: 'ReportsShow', components: { ModerateUserDropdown, RebootButton, ReportContent }, computed: { + isMobile() { + return this.$store.state.app.device === 'mobile' + }, loading() { return this.$store.state.reports.loadingSingleReport }, @@ -94,11 +109,19 @@ export default { margin: 0 15px 22px 15px; } .report { - width: 1000px; + max-width: 1000px; margin: auto; } .report-actions-button { - margin: 3px 0 6px; + margin: 0 5px; + } + .report-actions-container { + display: flex; + flex-wrap: wrap; + } + .report-card-container { + margin: auto; + padding: 0 15px; } .report-page-header { display: flex; @@ -139,4 +162,36 @@ export default { font-size: 14px; } } +@media only screen and (max-width:480px) { + .report-show-page-container { + .id { + margin: 7px 15px 15px 15px; + } + .report-actions-button { + margin: 0 3px 6px; + } + .report-page-header-container { + flex-direction: column; + align-items: flex-start; + } + .report-page-header { + h1 { + font-size: 24px; + } + .avatar-name-container { + .el-icon-top-right { + font-size: 24px; + } + } + .report-page-avatar { + margin: 0 5px 0 9px; + } + } + .report-tag { + height: 32px; + line-height: 32px; + font-size: 14px; + } + } +}