fix ui data

This commit is contained in:
TronoSfera 2026-03-02 19:59:39 +03:00
parent 7785f5c617
commit cd3bcf29c2
2 changed files with 25 additions and 7 deletions

View file

@ -1222,6 +1222,25 @@
min-width: 0;
}
.config-panel-flat .config-content {
border: 0;
border-radius: 0;
padding: 0;
background: transparent;
}
.config-actions-row {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.config-panel-flat .config-content .table-wrap table {
min-width: 640px;
}
.block {
border: 1px solid var(--line);
border-radius: 12px;

View file

@ -95,16 +95,15 @@ export function ConfigSection(props) {
</div>
</div>
<div className="config-layout">
<div className="config-panel">
<div className="block">
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center", gap: "0.5rem", marginBottom: "0.5rem" }}>
<h3 style={{ margin: 0 }}>{configActiveKey ? getTableLabel(configActiveKey) : "Справочник не выбран"}</h3>
<div className="config-panel config-panel-flat">
<div className="config-content">
{canCreateInConfig && configActiveKey ? (
<div className="config-actions-row">
<button className="btn" type="button" onClick={() => openCreateRecordModal(configActiveKey)}>
Добавить
</button>
) : null}
</div>
) : null}
<FilterToolbar
filters={activeConfigTableState.filters}
onOpen={() => openFilterModal(configActiveKey)}