Skip to content

Commit

Permalink
feat: maximize dialog when screen width lower than md
Browse files Browse the repository at this point in the history
  • Loading branch information
ymarcon committed Oct 21, 2024
1 parent 8d7b1b2 commit 09ebc70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/CampaignView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
{{ campaign.platform }}
</q-item-label>
<q-item-label v-if="hasStartLocation" class="text-grey-8">
<q-icon name="location_on" color="grey-10"/>
{{ formatCoordinates(campaign.start_location[0], campaign.start_location[1]) }}
<span v-if="hasEndLocation">
<q-icon name="east" color="grey-10"/>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/SimpleDialog.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<q-dialog :maximized="$q.screen.lt.sm" v-model="showDialog" @hide="onHide">
<q-card :style="$q.screen.lt.sm ? '' : `width: ${width ? width : '500px'}; max-width: 80vw; max-height: 90vh`">
<q-dialog :maximized="$q.screen.lt.md" v-model="showDialog" @hide="onHide">
<q-card :style="$q.screen.lt.md ? '' : `width: ${width ? width : '500px'}; max-width: 80vw; max-height: 90vh`">
<q-card-actions>
<div v-if="title" class="text-h6 q-pl-sm">
{{ title }}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
v-if="mapStore.selectedCampaign"
v-model="showCampaign"
:title="mapStore.selectedCampaign.acronym"
width="800px"
width="900px"
@update:model-value="onShowCampaignUpdated">
<campaign-view :campaign="mapStore.selectedCampaign" />
</simple-dialog>
Expand Down

0 comments on commit 09ebc70

Please sign in to comment.