Skip to content

Commit d322178

Browse files
Fixes Mobile View of dashboard
Signed-off-by: Sourabh Saraswat <saraswatsourabh5@gmail.com>
1 parent ba1bbb6 commit d322178

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

ui/src/components/IndividualEntry.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
</v-list-item>
8686
</td>
8787

88-
<td class="text-center">
88+
<td class="d-none d-sm-none d-md-table-cell text-center">
8989
<span v-if="isLocked" class="mr-7">{{ email }}</span>
9090
<v-edit-dialog v-else @save="$emit('edit', { email: form.email })">
9191
{{ email }}
@@ -103,7 +103,7 @@
103103
</v-edit-dialog>
104104
</td>
105105

106-
<td class="text-right">
106+
<td class="d-none d-sm-table-cell text-right">
107107
<v-tooltip
108108
v-for="(source, index) in sources"
109109
:key="index"
@@ -294,6 +294,7 @@ export default {
294294
}
295295
.v-list-item__title {
296296
text-overflow: inherit;
297+
width: 100px;
297298
}
298299
.aligned {
299300
margin-bottom: 4px;
@@ -331,4 +332,5 @@ tr {
331332
}
332333
}
333334
}
335+
334336
</style>

ui/src/components/WorkSpace.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@dragenter.prevent="onDrag($event)"
99
@dragleave.prevent="isDragging = false"
1010
>
11-
<v-row class="ma-md-0 pt-md-4 pl-md-4 pr-md-4 justify-space-between">
11+
<v-row class="ma-md-0 pt-md-4 pl-md-4 pr-md-4 ml-0 mr-0 justify-space-between">
1212
<h3 class="title">
1313
<v-icon color="black" left>
1414
mdi-pin
@@ -47,7 +47,7 @@
4747
<v-row
4848
v-if="savedIndividuals.length >= 1"
4949
dense
50-
class="pa-md-4 ma-md-0 drag-zone"
50+
class="pa-md-4 ma-md-0 ml-0 mr-0 drag-zone"
5151
>
5252
<v-col
5353
v-for="individual in savedIndividuals"

ui/src/views/Dashboard.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ export default {
277277
.row {
278278
justify-content: space-between;
279279
margin: 32px;
280+
281+
@media (max-width: 960px) {
282+
margin: 0;
283+
}
280284
}
281285
.individuals {
282286
width: 70%;
@@ -293,9 +297,17 @@ export default {
293297
294298
@media (max-width: 960px) {
295299
max-width: 100%;
300+
min-width: 100%;
296301
margin: 32px 0 0 0;
297302
}
298303
}
304+
305+
.container{
306+
@media (max-width: 960px) {
307+
padding: 0;
308+
}
309+
}
310+
299311
h4 {
300312
padding: 12px 26px;
301313
}

0 commit comments

Comments
 (0)