Fix mobile UI

This commit is contained in:
Angelina Filippova 2020-08-19 02:56:05 +03:00
parent 0a146aef7f
commit d2107a7101
2 changed files with 12 additions and 5 deletions

View file

@ -10,14 +10,14 @@
prop="actor"/>
<el-table-column
:label="$t('settings.followedBack')"
:width="getLabelWidth"
prop="followed_back"
width="120"
align="center">
<template slot-scope="scope">
<i :class="scope.row.followed_back ? 'el-icon-check' : 'el-icon-minus'"/>
</template>
</el-table-column>
<el-table-column :label="$t('table.actions')" fixed="right" width="120" align="center">
<el-table-column :label="$t('table.actions')" :width="getLabelWidth" fixed="right" align="center">
<template slot-scope="scope">
<el-button
type="text"
@ -40,11 +40,17 @@ export default {
}
},
computed: {
relays() {
return this.$store.state.relays.fetchedRelays
getLabelWidth() {
return this.isDesktop ? '130px' : '85px'
},
isDesktop() {
return this.$store.state.app.device === 'desktop'
},
loading() {
return this.$store.state.relays.loading
},
relays() {
return this.$store.state.relays.fetchedRelays
}
},
mounted() {

View file

@ -431,7 +431,7 @@
height: 2px;
}
.follow-relay {
width: 70%;
width: 75%;
margin-right: 5px;
input {
width: 100%;
@ -440,6 +440,7 @@
.follow-relay-container {
display: flex;
justify-content: space-between;
margin: 0 5px;
}
h1 {
font-size: 24px;