Polish contour settings spacing and zero-count monitoring
Device Core qualification / qualify (push) Successful in 7m32s

This commit is contained in:
DCCONSTRUCTIONS
2026-09-30 19:57:03 +03:00
parent c0487ca17b
commit 7072b86fb8
3 changed files with 5 additions and 5 deletions
@@ -109,7 +109,7 @@ export function B2HostSettings({ host, workspace, onClose, onChanged, onError }:
<ResourceList>{contours.map((item) => {
const link = status?.links?.find((value) => value.contourId === item.id), projectName = projects.find((p) => p.projectRef === link?.projectRef)?.name;
return <li key={item.id}><ResourceRow title={item.name} metadata={projectName ? `Проект: ${projectName}` : 'Проект не связан'} actions={<IconButton label={`Открыть контур ${item.name}`} disabled={busy} onClick={() => { setContourId(item.id); setApplicationId(''); }}><Icon name="chevron-right" /></IconButton>} /></li>;
})}</ResourceList>{!contours.length ? <p>Контуров пока нет</p> : null}
})}</ResourceList>{!contours.length ? <p>{pending === 'load' ? 'Загрузка контуров…' : status ? 'Контуров пока нет' : 'Контуры недоступны'}</p> : null}
</SettingsCard> : !application ? <>
<SettingsCard title={selected.name} actions={<StatusBadge>Контур</StatusBadge>}><ResourceRow title={projects.find((p) => p.projectRef === linkedProject)?.name || 'Не выбран'} metadata="Проект Device Core" actions={!linkedProject ? <Button disabled={busy} onClick={() => begin('project')}>Выбрать проект</Button> : undefined} /></SettingsCard>
<SettingsCard title="Приложения" actions={canManage ? <IconButton label={`Добавить приложение в ${selected.name}`} disabled={busy} onClick={() => begin('application')}><Icon name="plus" /></IconButton> : undefined}>
+2 -2
View File
@@ -1,5 +1,5 @@
.b2-settings { display: grid; gap: var(--nodedc-space-md); }
.b2-settings { display: grid; gap: var(--nodedc-space-4); }
.b2-settings p, .b2-path { margin: 0; font-size: var(--nodedc-font-size-sm); color: var(--nodedc-text-secondary); }
.b2-path { overflow-wrap: anywhere; }
.b2-actions { display: flex; gap: var(--nodedc-space-sm); flex-wrap: wrap; justify-content: flex-end; }
.b2-actions { display: flex; gap: var(--nodedc-space-2); flex-wrap: wrap; justify-content: flex-end; }
.b2-key-id { font-family: inherit; font-size: var(--nodedc-font-size-sm); overflow-wrap: anywhere; font-weight: 400; }