Skip to content

Commit fd8551b

Browse files
committed
made side card on md screen smaller
1 parent dd6cbae commit fd8551b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

frontend/src/views/app/Settings.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div>
44
<NavBar class="px-4 sm:px-16 lg:px-32" v-bind:currentRoute="'Settings'"></NavBar>
55
<div class="w-full md:w-auto md:mx-16 lg:mx-32 relative md:flex items-start h-auto md:mb-16 lg:mb-32">
6-
<section class="w-full md:max-w-xs md:shadow-md md:rounded-md">
6+
<section class="w-full md:max-w-xss md:shadow-md md:rounded-md">
77
<div class="w-full md:hidden h-1 bg-white-matcha"></div>
88
<div class="text-wrap bg-white-matcha recommendation-card w-full md:rounded-t-md"
99
v-bind:style="{
@@ -262,6 +262,13 @@ export default {
262262
height: 20rem;
263263
/*box-shadow: inset 0 -8rem 1rem rgba(0, 0, 0, 0.3);*/
264264
}
265+
266+
@screen md {
267+
.recommendation-card {
268+
height: 10rem;
269+
}
270+
}
271+
265272
.profile-section {
266273
height: 34rem;
267274
}

frontend/tailwind.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ module.exports = {
1818
'7xl': '5rem',
1919
'8xl': '6rem',
2020
},
21+
maxWidth: {
22+
'xss': '15rem',
23+
},
2124
},
2225
},
2326
variants: {

0 commit comments

Comments
 (0)