Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const animated = ref<boolean>(true);
* Group the items in chunks of 2 for large screens and 1 for small screens.
*/
const groupedItems = computed(() => {
const groupSize = $q.screen.width > 1400 ? 3 : $q.screen.width > 800 ? 2 : 1;
const groupSize = $q.screen.width > 800 ? 2 : 1;
return props.items.reduce((resultArray, item, index) => {
const chunkIndex = Math.floor(index / groupSize);
if (!resultArray[chunkIndex]) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,23 +116,14 @@
</q-drawer>

<!-- Page container that takes the remaining height -->
<q-page-container
:class="[
'column',
'flex',
{
'centered-container': !isLargeScreen,
'centered-container-large': isLargeScreen,
},
]"
>
<q-page-container class="column flex centered-container">
<router-view />
</q-page-container>
</q-layout>
</template>

<script setup lang="ts">
import { ref, computed, onMounted } from 'vue';
import { ref, onMounted } from 'vue';
import { useQuasar } from 'quasar';
const $q = useQuasar();

Expand All @@ -142,7 +133,6 @@ defineOptions({

const drawer = ref(false);
const themeMode = ref('auto');
const isLargeScreen = computed(() => $q.screen.width > 1400);

const setTheme = (mode: 'light' | 'dark' | 'auto') => {
themeMode.value = mode;
Expand Down Expand Up @@ -173,10 +163,4 @@ onMounted(() => {
margin-left: auto;
margin-right: auto;
}

.centered-container-large {
max-width: 1400px;
margin-left: auto;
margin-right: auto;
}
</style>