fix(admin-ui): translate field labels + responsive header + modal max-h
Issues:
- Field labels (ORBIT/STATUS/COUNTRY/MASS_KG/...) показывались raw'ом потому
что backend schema не присылает title. Добавил humanize() (snake_case → 'Snake Case')
+ i18n fallback t('field.$key') для известных полей spacecraft/satellite_type/
ground_station: name, designator, norad_id, status, country, operator, mass_kg,
mission, orbit, launch_date, decay_date, spectrum_bands, satellite_type_code, etc.
- Modal panel рос в высоту бесконечно (nstart-ui Modal не клампит max-h),
на iPad портрете форма уходила за viewport. panelClassName=max-h-[calc(100vh-2rem)]
flex flex-col + bodyClassName=overflow-y-auto flex-1.
- Header в __root: padding/gap responsive (px-4 sm:px-6, py-3 sm:py-4, gap-3 sm:gap-6),
flex-wrap чтобы LanguageSwitch на узких экранах переносился под навигацию.
- Main container: px-4 sm:px-6 + py-4 sm:py-8.
This commit is contained in:
@@ -185,6 +185,8 @@ function DictionaryDetail() {
|
||||
: ''
|
||||
}
|
||||
maxWidth="max-w-4xl"
|
||||
panelClassName="max-h-[calc(100vh-2rem)] my-4 flex flex-col"
|
||||
bodyClassName="overflow-y-auto flex-1"
|
||||
>
|
||||
{detailQuery.data && (edit.kind === 'create' || edit.kind === 'edit') && (
|
||||
<SchemaDrivenForm
|
||||
|
||||
Reference in New Issue
Block a user