fix: align saved location removal buttons
Some checks are pending
Playwright Tests / test (push) Waiting to run
Test and SonarQube / quality (push) Waiting to run

This commit is contained in:
mARTin-B78 2026-09-05 08:39:14 +02:00
parent d3a990270b
commit f5feffb4c0

View File

@ -892,7 +892,7 @@ export default function CalendarEventModal({
onMouseLeave={e => (e.currentTarget.style.background = 'transparent')} onMouseLeave={e => (e.currentTarget.style.background = 'transparent')}
> >
<MapPin size={11} style={{ opacity: 0.4, flexShrink: 0 }} /> <MapPin size={11} style={{ opacity: 0.4, flexShrink: 0 }} />
<span style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{suggestion.label}</span> <span style={{ flex: 1, minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{suggestion.label}</span>
{suggestion.source === 'openstreetmap' && ( {suggestion.source === 'openstreetmap' && (
<span style={{ marginLeft: 'auto', fontSize: '0.65rem', opacity: 0.5, whiteSpace: 'nowrap' }}>OpenStreetMap</span> <span style={{ marginLeft: 'auto', fontSize: '0.65rem', opacity: 0.5, whiteSpace: 'nowrap' }}>OpenStreetMap</span>
)} )}
@ -904,6 +904,7 @@ export default function CalendarEventModal({
title={language === 'de' ? 'Vorschlag entfernen' : 'Remove suggestion'} title={language === 'de' ? 'Vorschlag entfernen' : 'Remove suggestion'}
onMouseDown={e => { e.preventDefault(); e.stopPropagation(); dismissLocationSuggestion(suggestion); }} onMouseDown={e => { e.preventDefault(); e.stopPropagation(); dismissLocationSuggestion(suggestion); }}
style={{ style={{
marginLeft: 'auto', flexShrink: 0,
border: 'none', background: 'transparent', color: 'var(--weekly-text-light)', border: 'none', background: 'transparent', color: 'var(--weekly-text-light)',
cursor: 'pointer', padding: '0 2px', fontSize: '0.9rem', lineHeight: 1, cursor: 'pointer', padding: '0 2px', fontSize: '0.9rem', lineHeight: 1,
}} }}