Skip to content

Commit

Permalink
Merge pull request #6249 from abdou6666/fix/default-reminder
Browse files Browse the repository at this point in the history
fix: default reminder ui bug
  • Loading branch information
miaulalala authored Aug 22, 2024
2 parents 69b01f1 + def95a6 commit 4e99f60
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/AppNavigation/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@
</template>
{{ $t('calendar', 'Copy iOS/macOS CalDAV address') }}
</ActionButton>
<ActionLink :href="availabilitySettingsUrl"
target="_blank">
<ActionLink :href="availabilitySettingsUrl" target="_blank">
<template #icon>
<OpenInNewIcon :size="20" decorative />
</template>
Expand Down Expand Up @@ -256,8 +255,9 @@ export default {
},
defaultReminderOptions() {
const defaultAlarms = getDefaultAlarms().map(seconds => {
const label = seconds === 0 ? t('calendar', 'At event start') : moment.duration(Math.abs(seconds) * 1000).locale(this.locale).humanize()
return {
label: moment.duration(Math.abs(seconds) * 1000).locale(this.locale).humanize(),
label,
value: seconds.toString(),
}
})
Expand Down Expand Up @@ -503,7 +503,8 @@ export default {
</script>

<style scoped>
.settings-fieldset-interior-item, :deep(.v-select.select) {
.settings-fieldset-interior-item,
:deep(.v-select.select) {
width: 100%;
}
</style>

0 comments on commit 4e99f60

Please sign in to comment.