|
153 | 153 | @if ($this instanceof \Filament\Resources\Pages\ListRecords) |
154 | 154 | <x-filament::dropdown.list.item :href="$targetUrl" :icon="$locale->display_flag" |
155 | 155 | wire:click="changeLanguage('{{ $locale->locale_variant }}')"> |
156 | | - <div style="display: flex; align-items: center; justify-content: space-between; width: 100%;"> |
157 | | - <span>{{ $locale->display_name }}</span> |
| 156 | + <div style="display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px;"> |
| 157 | + <span |
| 158 | + style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0;">{{ $locale->display_name }}</span> |
158 | 159 | @if(isset($translationStatus) && $translationStatus === 'deleted') |
159 | 160 | <x-filament::icon-button icon="heroicon-o-trash" size="md" color="danger" tooltip="Übersetzung gelöscht" |
160 | | - style="margin-left: 8px;" /> |
| 161 | + style="flex-shrink: 0;" /> |
161 | 162 | @else |
162 | 163 | <x-filament::icon-button icon="heroicon-o-plus-circle" size="md" color="success" |
163 | | - tooltip="Übersetzung hinzufügen" style="margin-left: 8px;" /> |
| 164 | + tooltip="Übersetzung hinzufügen" style="flex-shrink: 0;" /> |
164 | 165 | @endif |
165 | 166 | </div> |
166 | 167 | </x-filament::dropdown.list.item> |
167 | 168 | @else |
168 | 169 | <x-filament::dropdown.list.item :href="$targetUrl" :icon="$locale->display_flag" tag="a"> |
169 | | - <div style="display: flex; align-items: center; justify-content: space-between; width: 100%;"> |
170 | | - <span>{{ $locale->display_name }}</span> |
| 170 | + <div style="display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px;"> |
| 171 | + <span |
| 172 | + style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0;">{{ $locale->display_name }}</span> |
171 | 173 | @if(isset($translationStatus) && $translationStatus === 'deleted') |
172 | 174 | <x-filament::icon-button icon="heroicon-o-trash" size="xs" color="danger" tooltip="Übersetzung gelöscht" |
173 | | - style="margin-left: 8px;" /> |
| 175 | + style="flex-shrink: 0;" /> |
174 | 176 | @else |
175 | 177 | <x-filament::icon-button icon="heroicon-o-plus-circle" size="xs" color="success" |
176 | | - tooltip="Übersetzung hinzufügen" style="margin-left: 8px;" /> |
| 178 | + tooltip="Übersetzung hinzufügen" style="flex-shrink: 0;" /> |
177 | 179 | @endif |
178 | 180 | </div> |
179 | 181 | </x-filament::dropdown.list.item> |
|
0 commit comments