Fix display calendar: text cutoff (py-1) and force refetch on update
- Add py-1 to Select to prevent text clipping at h-8 height - Use refetchQueries instead of invalidateQueries for calendar-events after display calendar update to ensure immediate visual refresh Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d00d6d6d49
commit
aa1ff50788
@ -951,7 +951,7 @@ export default function EventDetailPanel({
|
||||
updateDisplayCalendar({ invitationId: myInvitationId, calendarId: calId });
|
||||
}
|
||||
}}
|
||||
className="text-xs h-8"
|
||||
className="text-xs h-8 py-1"
|
||||
disabled={isUpdatingDisplayCalendar}
|
||||
>
|
||||
{!event?.display_calendar_id && (
|
||||
|
||||
@ -65,7 +65,7 @@ export function useEventInvitations(eventId: number | null) {
|
||||
return data;
|
||||
},
|
||||
onSuccess: () => {
|
||||
queryClient.invalidateQueries({ queryKey: ['calendar-events'] });
|
||||
queryClient.refetchQueries({ queryKey: ['calendar-events'] });
|
||||
queryClient.invalidateQueries({ queryKey: ['event-invitations'] });
|
||||
toast.success('Display calendar updated');
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user