Skip to content

Commit

Permalink
Fix whitespace: nowrap expanding width of calendar days on month vi…
Browse files Browse the repository at this point in the history
…ew. (#416)
  • Loading branch information
MelissaAutumn authored May 22, 2024
1 parent fade83a commit 91f4b72
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions frontend/src/elements/CalendarEvent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,19 @@
color: !eventData.tentative ? getAccessibleColor(eventData.calendar_color) : null,
}"
></div>
<div
class="truncate rounded "
:class="{
'h-full border-2 border-dashed border-teal-500 p-1 font-semibold group-hover/event:border-white': placeholder,
'!border-none': isBooked,
'border-white': isSelected,
}"
>
<span v-if="eventData.preview">{{ formattedTimeRange(event) }}</span>
<span v-else-if="isBooked">{{ t('label.busy') }}</span>
<span v-else>{{ event.title }}</span>
<div class="grid">
<div
class="truncate rounded"
:class="{
'h-full border-2 border-dashed border-teal-500 p-1 font-semibold group-hover/event:border-white': placeholder,
'!border-none': isBooked,
'border-white': isSelected,
}"
>
<template v-if="eventData.preview">{{ formattedTimeRange(event) }}</template>
<template v-else-if="isBooked">{{ t('label.busy') }}</template>
<template v-else>{{ event.title }}</template>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 91f4b72

Please sign in to comment.