Skip to content

Commit ac7cefb

Browse files
committed
Make the account page mobile friendly
1 parent 4e4a183 commit ac7cefb

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@
66
<TwoFactorAuthentication/>
77
</modal>
88
<flash container="mt-6 mb-2 mx-4"/>
9-
<div class="flex">
10-
<div class="flex-1 m-4 ml-0">
11-
<update-email class="mb-8"/>
12-
<div class="bg-white p-6 border border-grey-light rounded rounded-1 text-center">
13-
<button class="btn btn-green btn-sm" type="submit" v-on:click="modalVisible = true">Configure 2-Factor Authentication</button>
9+
<div class="flex flex-wrap">
10+
<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">
14+
<button class="btn btn-green btn-sm" type="submit" v-on:click="modalVisible = true">Configure 2-Factor Authentication</button>
15+
</div>
1416
</div>
1517
</div>
16-
<change-password class="flex-1 m-4 mr-0"/>
18+
<div class="w-full md:w-1/2">
19+
<change-password class="m-4 md:mr-0"/>
20+
</div>
1721
</div>
1822
</div>
1923
</div>

resources/assets/scripts/components/dashboard/account/ChangePassword.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div>
33
<form action="" method="post">
4-
<div class="bg-white p-6 border border-grey-light rounded rounded-1">
4+
<div class="content-box">
55
<h2 class="mb-6 text-grey-darkest font-medium">Change your password</h2>
66
<div class="mt-6">
77
<label for="grid-password-current" class="input-label">Current password</label>

resources/assets/scripts/components/dashboard/account/UpdateEmail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div :class>
33
<form method="post" v-on:submit.prevent="submitForm">
4-
<div class="bg-white p-6 border border-grey-light rounded rounded-1">
4+
<div class="content-box">
55
<h2 class="mb-6 text-grey-darkest font-medium">Update your email</h2>
66
<div>
77
<label for="grid-email" class="input-label">Email address</label>

resources/assets/styles/components/miscellaneous.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ code {
4242
}
4343
}
4444

45+
/**
46+
* Styling for elements that contain the core page content.
47+
*/
48+
.content-box {
49+
@apply .bg-white .p-6 .border .border-grey-light .rounded;
50+
}
51+
4552
/**
4653
* Flex boxes for server listing on user dashboard.
4754
*/

0 commit comments

Comments
 (0)