Skip to content

Commit

Permalink
Merge pull request #590 from jellyfin/fix/publicuserresponsive
Browse files Browse the repository at this point in the history
fix(login): fix some responsive problems
  • Loading branch information
ferferga authored Jan 25, 2021
2 parents 0382ad1 + 61c38ad commit 518e103
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
9 changes: 7 additions & 2 deletions components/System/LocaleSwitcher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<v-btn
:icon="!fab"
:fab="fab"
:small="fab"
:small="!large & fab"
:large="large"
:class="{ 'mr-n1': !fab, 'ml-1': fab }"
v-bind="{ ...attrsMenu, ...attrsTooltip }"
v-on="{ ...onMenu, ...onTooltip }"
Expand Down Expand Up @@ -37,7 +38,11 @@ export default Vue.extend({
props: {
fab: {
type: Boolean,
required: true
required: false
},
large: {
type: Boolean,
required: false
}
},
methods: {
Expand Down
25 changes: 12 additions & 13 deletions pages/login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,35 @@
<v-row align="center" justify="center">
<v-col
v-if="isEmpty(currentUser) && !loginAsOther && publicUsers.length > 0"
sm="7"
md="6"
sm="10"
md="7"
lg="5"
>
<h1 class="text-h4 mb-6 text-center">{{ $t('selectUser') }}</h1>
<v-row align="center" justify="center">
<v-col
v-for="publicUser in publicUsers"
:key="publicUser.Id"
xl="2"
lg="4"
md="4"
sm="4"
xs="4"
cols="6"
cols="auto"
>
<user-card :user="publicUser" @connect="setCurrentUser" />
</v-col>
</v-row>
<v-row align="center" justify="center" no-gutters>
<v-col class="d-flex flex-row mt-7">
<v-btn class="flex-grow-1 mr-2" large @click="loginAsOther = true">
<v-row align="center" justify="center" dense class="mt-7">
<v-col cols="11" sm="6" class="d-flex justify-center">
<v-btn block large @click="loginAsOther = true">
{{ $t('manualLogin') }}
</v-btn>
<v-btn class="flex-grow-1 mr-2" to="/selectServer" nuxt large>
</v-col>
<v-col cols="11" sm="6" class="d-flex justify-center">
<v-btn block to="/selectServer" nuxt large>
{{ $t('changeServer') }}
</v-btn>
<locale-switcher />
</v-col>
</v-row>
<div class="d-flex justify-center mt-6">
<locale-switcher large />
</div>
</v-col>
<v-col
v-else-if="!isEmpty(currentUser) || loginAsOther || !publicUsers.length"
Expand Down

0 comments on commit 518e103

Please sign in to comment.