Skip to content

Commit e7ccee1

Browse files
authored
Make log in card responsiv for screens as small as 320px (#934)
* Make log in card responsiv for screens as small as 320px * Adjust the padding to 16px and make it more responsive * Remove padding on login card
1 parent a74ec1d commit e7ccee1

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

src/components/Cards/Login.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<v-form @submit="login">
3-
<v-card class="elevation-12 mt-16" width="477px">
3+
<v-card class="elevation-12 mt-16 card-width">
44
<v-toolbar dark color="primary">
55
<v-toolbar-title>{{title}}</v-toolbar-title>
66
</v-toolbar>
@@ -100,4 +100,15 @@ export default {
100100
</script>
101101

102102
<style lang="css" scoped>
103+
.card-width {
104+
width: 477px;
105+
106+
}
107+
108+
@media (max-width: 620px) {
109+
.card-width {
110+
width: calc(100%);
111+
margin-right: 110px;
112+
}
113+
}
103114
</style>

src/components/Pages/Login.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template>
2-
<v-main>
2+
<v-main class="pa-1">
33
<v-container class="fill-height" fluid >
44
<v-row align="center" justify="center">
55
<LoginCard title="Log in" buttonText="Log in"/>
66
</v-row>
7-
<v-row class="pt-12" justify="center" >
7+
<v-row justify="center" >
88
<div>
9-
Need an account?
9+
<div class="pa-4">Need an account?</div>
1010
<v-btn
1111
class="ms-6"
1212
to="/create-account"

0 commit comments

Comments
 (0)