File tree 2 files changed +42
-21
lines changed
web/optivum-better-schedule-frontend/src/components
2 files changed +42
-21
lines changed Original file line number Diff line number Diff line change 34
34
</v-navigation-drawer>
35
35
36
36
<v-slide-x-transition appear>
37
- <v-card class="menu-card rounded-pill pa-8 " elevation="8" @click="drawer = !drawer">
37
+ <v-card class="menu-card rounded-pill" elevation="8" @click="drawer = !drawer">
38
38
<v-btn icon="mdi-menu" :ripple="true" />
39
39
</v-card>
40
40
</v-slide-x-transition>
Original file line number Diff line number Diff line change 1
1
<!-- Divisions.vue -->
2
2
<template>
3
3
<v-slide-y-transition appear>
4
- <v-card class="search-container pa-0elevation-4 rounded-b-lg ">
4
+ <v-card class="search-container pa-0" elevation="8" rounded="pill ">
5
5
<v-text-field v-model="search" class="search" :label="t('search.division')" prepend-inner-icon="mdi-magnify"
6
- variant="outlined " />
6
+ variant="solo" rounded="pill" hide-details="auto " />
7
7
</v-card>
8
8
</v-slide-y-transition>
9
9
<v-slide-y-reverse-transition appear>
@@ -66,53 +66,74 @@ const filteredItems = computed(() => {
66
66
overflow: visible;
67
67
}
68
68
69
+ :deep(.search .v-field--variant-solo) {
70
+ box-shadow: none !important;
71
+ border-color: transparent !important;
72
+ }
73
+
69
74
.search-container {
70
75
width: 50%;
71
- margin: auto;
76
+ height: 64px;
77
+ margin: 16px auto;
72
78
display: flex;
73
79
justify-content: center;
74
80
align-items: center;
75
81
z-index: 10;
76
- position: fixed;
77
- top: 0;
78
- padding: 1rem;
79
- }
80
-
81
- .v-card {
82
- overflow: visible;
82
+ position: sticky;
83
+ top: 16px;
84
+ padding: 0 1rem;
83
85
}
84
86
85
87
.search {
86
88
width: 100%;
87
- max-width: 100%;
88
- margin: 0;
89
+ }
90
+
91
+ .v-card {
92
+ overflow: visible;
89
93
}
90
94
91
95
.scrollable-grid {
92
96
overflow-y: auto;
93
- width: 100%;
94
- padding: 1rem 0;
97
+ width: auto;
95
98
background-color: var(--v-background-base);
99
+ padding: 1rem;
96
100
}
97
101
98
102
.divisions-grid {
99
103
display: grid;
100
- grid-template-columns: repeat(auto-fill, minmax(6rem , 1fr));
101
- gap: 1.5rem ;
104
+ grid-template-columns: repeat(auto-fill, minmax(7rem , 1fr));
105
+ gap: 2rem ;
102
106
justify-content: center;
103
107
background-color: var(--v-background-base);
104
108
padding: 1.5rem;
105
- margin: 0 auto ;
109
+ margin: 2rem 2rem 2rem ;
106
110
width: auto;
107
- margin: 8.5rem 1.5rem 1.5rem;
108
111
}
109
112
110
113
.grid-item {
111
- width: 6rem ;
112
- height: 6rem ;
114
+ width: 7rem ;
115
+ height: 7rem ;
113
116
display: flex;
114
117
justify-content: center;
115
118
align-items: center;
116
119
aspect-ratio: 1 / 1;
117
120
}
121
+
122
+ @media (max-width: 1280px) {
123
+ .search-container {
124
+ padding: 0.75rem;
125
+ }
126
+
127
+ .divisions-grid {
128
+ grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
129
+ gap: 2rem;
130
+ padding: 1rem;
131
+ margin: 2rem 2rem 2rem;
132
+ }
133
+
134
+ .grid-item {
135
+ width: 5rem;
136
+ height: 5rem;
137
+ }
138
+ }
118
139
</style>
You can’t perform that action at this time.
0 commit comments