Skip to content

Commit 50ab60f

Browse files
committed
refactor(webui): use breakpoint conditionals
1 parent 70a546f commit 50ab60f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Diff for: komga-webui/src/views/BrowseCollections.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div :style="$vuetify.breakpoint.name === 'xs' ? 'margin-bottom: 56px' : undefined">
2+
<div :style="$vuetify.breakpoint.xs ? 'margin-bottom: 56px' : undefined">
33
<toolbar-sticky v-if="selectedCollections.length === 0">
44
<!-- Action menu -->
55
<library-actions-menu v-if="library"

Diff for: komga-webui/src/views/BrowseLibraries.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div :style="$vuetify.breakpoint.name === 'xs' ? 'margin-bottom: 56px' : undefined">
2+
<div :style="$vuetify.breakpoint.xs ? 'margin-bottom: 56px' : undefined">
33
<toolbar-sticky v-if="selectedSeries.length === 0">
44
<!-- Action menu -->
55
<library-actions-menu v-if="library"

Diff for: komga-webui/src/views/BrowseReadLists.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div :style="$vuetify.breakpoint.name === 'xs' ? 'margin-bottom: 56px' : undefined">
2+
<div :style="$vuetify.breakpoint.xs ? 'margin-bottom: 56px' : undefined">
33
<toolbar-sticky v-if="selectedReadLists.length === 0">
44
<!-- Action menu -->
55
<library-actions-menu v-if="library"

Diff for: komga-webui/src/views/DashboardView.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div :style="$vuetify.breakpoint.name === 'xs' ? 'margin-bottom: 56px' : undefined">
2+
<div :style="$vuetify.breakpoint.xs ? 'margin-bottom: 56px' : undefined">
33
<toolbar-sticky v-if="individualLibrary && selectedSeries.length === 0">
44
<!-- Action menu -->
55
<library-actions-menu v-if="library"
@@ -311,7 +311,7 @@ export default Vue.extend({
311311
return this.$store.getters.meAdmin
312312
},
313313
fixedCardWidth(): number {
314-
return this.$vuetify.breakpoint.name === 'xs' ? 120 : 150
314+
return this.$vuetify.breakpoint.xs ? 120 : 150
315315
},
316316
allEmpty(): boolean {
317317
return this.loaderNewSeries?.items.length === 0 &&

Diff for: komga-webui/src/views/SearchView.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ export default Vue.extend({
249249
return this.$store.getters.meAdmin
250250
},
251251
fixedCardWidth(): number {
252-
return this.$vuetify.breakpoint.name === 'xs' ? 120 : 150
252+
return this.$vuetify.breakpoint.xs ? 120 : 150
253253
},
254254
showToolbar(): boolean {
255255
return this.selectedSeries.length === 0 && this.selectedBooks.length === 0 && this.selectedCollections.length === 0 && this.selectedReadLists.length === 0

0 commit comments

Comments
 (0)