Skip to content

Commit

Permalink
Make log in card responsiv for screens as small as 320px
Browse files Browse the repository at this point in the history
  • Loading branch information
rosalieper committed Dec 2, 2024
1 parent ca831c1 commit f7b1229
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 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,14 @@ export default {
</script>

<style lang="css" scoped>
.card-width {
width: 477px;
}
@media (max-width: 480px) {
.card-width {
width: calc(100% - 2px);
max-width: 320px; /* Limit to 320px for very small screens */
}
}
</style>

0 comments on commit f7b1229

Please sign in to comment.