File tree Expand file tree Collapse file tree
packages/modules/web_themes/koala/source/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const animated = ref<boolean>(true);
4848 * Group the items in chunks of 2 for large screens and 1 for small screens.
4949 */
5050const groupedItems = computed (() => {
51- const groupSize = $q .screen .width > 800 ? 2 : 1 ;
51+ const groupSize = $q .screen .width > 1400 ? 3 : $q . screen . width > 800 ? 2 : 1 ;
5252 return props .items .reduce ((resultArray , item , index ) => {
5353 const chunkIndex = Math .floor (index / groupSize );
5454 if (! resultArray [chunkIndex ]) {
Original file line number Diff line number Diff line change 116116 </q-drawer >
117117
118118 <!-- Page container that takes the remaining height -->
119- <q-page-container class =" column flex centered-container" >
119+ <q-page-container
120+ :class =" [
121+ 'column',
122+ 'flex',
123+ {
124+ 'centered-container': !isLargeScreen,
125+ 'centered-container-large': isLargeScreen,
126+ },
127+ ]"
128+ >
120129 <router-view />
121130 </q-page-container >
122131 </q-layout >
123132</template >
124133
125134<script setup lang="ts">
126- import { ref , onMounted } from ' vue' ;
135+ import { ref , computed , onMounted } from ' vue' ;
127136import { useQuasar } from ' quasar' ;
128137const $q = useQuasar ();
129138
@@ -133,6 +142,7 @@ defineOptions({
133142
134143const drawer = ref (false );
135144const themeMode = ref (' auto' );
145+ const isLargeScreen = computed (() => $q .screen .width > 1400 );
136146
137147const setTheme = (mode : ' light' | ' dark' | ' auto' ) => {
138148 themeMode .value = mode ;
@@ -163,4 +173,10 @@ onMounted(() => {
163173 margin-left : auto ;
164174 margin-right : auto ;
165175}
176+
177+ .centered-container-large {
178+ max-width : 1400px ;
179+ margin-left : auto ;
180+ margin-right : auto ;
181+ }
166182 </style >
You can’t perform that action at this time.
0 commit comments