Improve mobile layout

This commit is contained in:
taehoon 2019-03-22 14:19:50 -04:00
parent 91502a25a4
commit f364068e10
2 changed files with 42 additions and 19 deletions

View file

@ -379,6 +379,7 @@ main-router {
.panel-heading { .panel-heading {
display: flex; display: flex;
flex: none;
border-radius: $fallback--panelRadius $fallback--panelRadius 0 0; border-radius: $fallback--panelRadius $fallback--panelRadius 0 0;
border-radius: var(--panelRadius, $fallback--panelRadius) var(--panelRadius, $fallback--panelRadius) 0 0; border-radius: var(--panelRadius, $fallback--panelRadius) var(--panelRadius, $fallback--panelRadius) 0 0;
background-size: cover; background-size: cover;

View file

@ -26,7 +26,7 @@
</div> </div>
</div> </div>
<div class="user-reporting-panel-right"> <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" /> <Status :inConversation="false" :focused="false" :statusoid="status" />
<Checkbox :checked="isChecked(status.id)" @change="checked => toggleStatus(checked, status.id)" /> <Checkbox :checked="isChecked(status.id)" @change="checked => toggleStatus(checked, status.id)" />
</div> </div>
@ -44,26 +44,24 @@
.user-reporting-panel { .user-reporting-panel {
width: 90vw; width: 90vw;
max-width: 700px; max-width: 700px;
min-height: 20vh;
max-height: 80vh;
.panel-body { .panel-body {
display: flex; display: flex;
flex-direction: column-reverse;
border-top: 1px solid; border-top: 1px solid;
border-color: $fallback--border; border-color: $fallback--border;
border-color: var(--border, $fallback--border); border-color: var(--border, $fallback--border);
} }
&-left { &-left {
width: 50%; padding: 1.1em 0.7em 0.7em;
padding: 1.1em;
border-right: 1px solid;
border-color: $fallback--border;
border-color: var(--border, $fallback--border);
max-width: 320px;
line-height: 1.4em; line-height: 1.4em;
box-sizing: border-box; box-sizing: border-box;
> div { > div {
margin-bottom: 2em; margin-bottom: 1em;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
@ -95,25 +93,49 @@
} }
&-right { &-right {
width: 50%;
flex: 1 1 auto;
min-height: 20vh;
max-height: 80vh;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
}
> div { &-sitem {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
border-bottom-width: 1px; border-bottom-width: 1px;
border-bottom-style: solid; 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: $fallback--border;
border-color: var(--border, $fallback--border); border-color: var(--border, $fallback--border);
padding: 1.1em;
.checkbox { > div {
margin: 0.75em; margin-bottom: 2em;
} }
} }
&-right {
width: 50%;
flex: 1 1 auto;
}
} }
} }
</style> </style>