aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_reporting_modal
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-03-22 14:19:50 -0400
committertaehoon <th.dev91@gmail.com>2019-05-03 11:40:06 -0400
commitf364068e103641e761e2ca2c6d337c3536112546 (patch)
tree84027646de30202e6ff91729e245a080014352a0 /src/components/user_reporting_modal
parent91502a25a4feaec60891ee5f7b7623fe4e05e0a8 (diff)
Improve mobile layout
Diffstat (limited to 'src/components/user_reporting_modal')
-rw-r--r--src/components/user_reporting_modal/user_reporting_modal.vue60
1 files changed, 41 insertions, 19 deletions
diff --git a/src/components/user_reporting_modal/user_reporting_modal.vue b/src/components/user_reporting_modal/user_reporting_modal.vue
index fd9dd797..b2cb6911 100644
--- a/src/components/user_reporting_modal/user_reporting_modal.vue
+++ b/src/components/user_reporting_modal/user_reporting_modal.vue
@@ -26,7 +26,7 @@
</div>
</div>
<div class="user-reporting-panel-right">
- <div v-for="status in statuses" :key="status.id" class="status-fadein">
+ <div v-for="status in statuses" :key="status.id" class="status-fadein user-reporting-panel-sitem">
<Status :inConversation="false" :focused="false" :statusoid="status" />
<Checkbox :checked="isChecked(status.id)" @change="checked => toggleStatus(checked, status.id)" />
</div>
@@ -44,26 +44,24 @@
.user-reporting-panel {
width: 90vw;
max-width: 700px;
+ min-height: 20vh;
+ max-height: 80vh;
.panel-body {
display: flex;
+ flex-direction: column-reverse;
border-top: 1px solid;
border-color: $fallback--border;
border-color: var(--border, $fallback--border);
}
&-left {
- width: 50%;
- padding: 1.1em;
- border-right: 1px solid;
- border-color: $fallback--border;
- border-color: var(--border, $fallback--border);
- max-width: 320px;
+ padding: 1.1em 0.7em 0.7em;
line-height: 1.4em;
box-sizing: border-box;
> div {
- margin-bottom: 2em;
+ margin-bottom: 1em;
&:last-child {
margin-bottom: 0;
@@ -95,25 +93,49 @@
}
&-right {
- width: 50%;
- flex: 1 1 auto;
- min-height: 20vh;
- max-height: 80vh;
overflow-y: auto;
overflow-x: hidden;
+ }
- > div {
- display: flex;
- justify-content: space-between;
- border-bottom-width: 1px;
- border-bottom-style: solid;
+ &-sitem {
+ display: flex;
+ justify-content: space-between;
+ border-bottom-width: 1px;
+ border-bottom-style: solid;
+ border-color: $fallback--border;
+ border-color: var(--border, $fallback--border);
+
+ > .status-el {
+ flex: 1;
+ }
+
+ > .checkbox {
+ margin: 0.75em;
+ }
+ }
+
+ @media all and (min-width: 801px) {
+ .panel-body {
+ flex-direction: row;
+ }
+
+ &-left {
+ width: 50%;
+ max-width: 320px;
+ border-right: 1px solid;
border-color: $fallback--border;
border-color: var(--border, $fallback--border);
+ padding: 1.1em;
- .checkbox {
- margin: 0.75em;
+ > div {
+ margin-bottom: 2em;
}
}
+
+ &-right {
+ width: 50%;
+ flex: 1 1 auto;
+ }
}
}
</style>