Skip to content

Commit

Permalink
style(EditCalendarModal): align checkbox
Browse files Browse the repository at this point in the history
Signed-off-by: Grigory V <[email protected]>
  • Loading branch information
GVodyanov authored and miaulalala committed Jul 17, 2024
1 parent fadeec3 commit d67156b
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions src/components/AppNavigation/EditCalendarModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
</div>
<template v-if="canBeShared">
<NcListItem :name="$t('calendar', 'Include calendar in free/busy checks')"
@click="isTransparent = !isTransparent">
@click="isTransparent = !isTransparent">
<template #icon>
<CheckboxBlank v-if="isTransparent"
:size="20"
:fill-color="calendar.color" />
:size="20"
:fill-color="calendar.color" />
<CheckboxMarked v-else
:size="20"
:fill-color="calendar.color" />
:size="20"
:fill-color="calendar.color" />
</template>
</NcListItem>
</template>
Expand Down Expand Up @@ -215,18 +215,18 @@ export default {
* Save the calendar transparency.
*/
async saveTransparency() {
try {
await this.calendarsStore.changeCalendarTransparency({
calendar: this.calendar,
transparency: this.isTransparent ? 'transparent' : 'opaque',
})
} catch (error) {
logger.error('Failed to save calendar transparency', {
calendar: this.calendar,
transparency: this.isTransparent ? 'transparent' : 'opaque',
})
throw error
}
try {
await this.calendarsStore.changeCalendarTransparency({
calendar: this.calendar,
transparency: this.isTransparent ? 'transparent' : 'opaque',
})
} catch (error) {
logger.error('Failed to save calendar transparency', {
calendar: this.calendar,
transparency: this.isTransparent ? 'transparent' : 'opaque',
})
throw error
}
},
/**
Expand Down Expand Up @@ -281,7 +281,7 @@ export default {
}
</script>
<style lang="scss" scoped>
<style lang="scss">
.edit-calendar-modal {
padding: 20px;
display: flex;
Expand Down Expand Up @@ -325,6 +325,10 @@ export default {
flex-direction: column;
gap: 5px;
}
.list-item {
margin-left: -4px;
}
}
.app-navigation-spacer {
Expand Down

0 comments on commit d67156b

Please sign in to comment.