Skip to content

Commit 5c3d3f6

Browse files
committed
Better support for mobile devices on login and account pages
1 parent 941c585 commit 5c3d3f6

File tree

7 files changed

+18
-12
lines changed

7 files changed

+18
-12
lines changed

resources/assets/scripts/components/auth/ForgotPassword.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<form class="bg-white shadow-lg rounded-lg pt-10 px-8 pb-6 mb-4 animate fadein" method="post"
3+
<form class="login-box" method="post"
44
v-on:submit.prevent="submitForm"
55
>
66
<div class="flex flex-wrap -mx-3 mb-6">

resources/assets/scripts/components/auth/LoginForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<form class="bg-white shadow-lg rounded-lg pt-10 px-8 pb-6 mb-4 animate fadein" method="post"
3+
<form class="login-box" method="post"
44
v-on:submit.prevent="submitForm"
55
>
66
<div class="flex flex-wrap -mx-3 mb-6">

resources/assets/scripts/components/auth/TwoFactorForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<form class="bg-white shadow-lg rounded-lg pt-10 px-8 pb-6 mb-4 animate fadein" method="post"
2+
<form class="login-box" method="post"
33
v-on:submit.prevent="submitToken"
44
>
55
<div class="flex flex-wrap -mx-3 mb-6">

resources/assets/scripts/components/dashboard/Account.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<template>
22
<div>
33
<navigation/>
4-
<div class="container animate fadein mt-6">
4+
<div class="container animate fadein mt-2 sm:mt-6">
55
<modal :show="modalVisible" v-on:close="modalVisible = false">
66
<TwoFactorAuthentication/>
77
</modal>
8-
<flash container="mt-6 mb-2 mx-4"/>
8+
<flash container="mt-2 sm:mt-6 mb-2 sm:mx-4"/>
99
<div class="flex flex-wrap">
1010
<div class="w-full md:w-1/2">
11-
<div class="m-4 md:ml-0">
12-
<update-email class="mb-8"/>
13-
<div class="content-box text-center">
11+
<div class="sm:m-4 md:ml-0">
12+
<update-email class="mb-4 sm:mb-8"/>
13+
<div class="content-box text-center mb-4 sm:mb-0">
1414
<button class="btn btn-green btn-sm" type="submit" v-on:click="modalVisible = true">Configure 2-Factor Authentication</button>
1515
</div>
1616
</div>
1717
</div>
1818
<div class="w-full md:w-1/2">
19-
<change-password class="m-4 md:mr-0"/>
19+
<change-password class="sm:m-4 md:mr-0"/>
2020
</div>
2121
</div>
2222
</div>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
.login-box {
22
@apply .bg-white .shadow-lg .rounded-lg .pt-10 .px-8 .pb-6 .mb-4;
3+
4+
@screen xsx {
5+
@apply .rounded-none;
6+
margin-top: 25%;
7+
box-shadow: 0 15px 30px 0 rgba(0, 0, 0, .2), 0 -15px 30px 0 rgba(0, 0, 0, .2);
8+
}
39
}

resources/themes/pterodactyl/templates/auth/core.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
])
44

55
@section('container')
6-
<div class="w-full max-w-xs sm:max-w-sm m-auto mt-8">
7-
<div class="text-center">
6+
<div class="w-full sm:max-w-sm m-auto mt-8">
7+
<div class="text-center hidden sm:block">
88
<img src="/favicons/android-chrome-512x512.png" class="max-w-xxs">
99
</div>
1010
<router-view></router-view>

resources/themes/pterodactyl/templates/base/core.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@section('container')
44
<router-view></router-view>
55
<div class="w-full m-auto mt-0 container">
6-
<p class="text-right text-grey-dark text-xs">
6+
<p class="text-center sm:text-right text-grey-dark text-xs">
77
{!! trans('strings.copyright', ['year' => date('Y')]) !!}
88
</p>
99
</div>

0 commit comments

Comments
 (0)