Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make log in card responsiv for screens as small as 320px #934

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/components/Cards/Login.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-form @submit="login">
<v-card class="elevation-12 mt-16" width="477px">
<v-card class="elevation-12 mt-16 card-width">
<v-toolbar dark color="primary">
<v-toolbar-title>{{title}}</v-toolbar-title>
</v-toolbar>
Expand Down Expand Up @@ -100,4 +100,16 @@ export default {
</script>

<style lang="css" scoped>
.card-width {
width: 477px;
padding: 16px;

}

@media (max-width: 620px) {
.card-width {
width: calc(100%);
margin-right: 110px;
}
}
</style>
6 changes: 3 additions & 3 deletions src/components/Pages/Login.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<template>
<v-main>
<v-main class="pa-1">
<v-container class="fill-height" fluid >
<v-row align="center" justify="center">
<LoginCard title="Log in" buttonText="Log in"/>
</v-row>
<v-row class="pt-12" justify="center" >
<v-row justify="center" >
<div>
Need an account?
<div class="pa-4">Need an account?</div>
<v-btn
class="ms-6"
to="/create-account"
Expand Down
Loading