mirror of
https://github.com/TronoSfera/Law.git
synced 2026-05-18 10:03:45 +03:00
fix ui data
This commit is contained in:
parent
7785f5c617
commit
cd3bcf29c2
2 changed files with 25 additions and 7 deletions
|
|
@ -1222,6 +1222,25 @@
|
||||||
min-width: 0;
|
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 {
|
.block {
|
||||||
border: 1px solid var(--line);
|
border: 1px solid var(--line);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
|
|
|
||||||
|
|
@ -95,16 +95,15 @@ export function ConfigSection(props) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="config-layout">
|
<div className="config-layout">
|
||||||
<div className="config-panel">
|
<div className="config-panel config-panel-flat">
|
||||||
<div className="block">
|
<div className="config-content">
|
||||||
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center", gap: "0.5rem", marginBottom: "0.5rem" }}>
|
{canCreateInConfig && configActiveKey ? (
|
||||||
<h3 style={{ margin: 0 }}>{configActiveKey ? getTableLabel(configActiveKey) : "Справочник не выбран"}</h3>
|
<div className="config-actions-row">
|
||||||
{canCreateInConfig && configActiveKey ? (
|
|
||||||
<button className="btn" type="button" onClick={() => openCreateRecordModal(configActiveKey)}>
|
<button className="btn" type="button" onClick={() => openCreateRecordModal(configActiveKey)}>
|
||||||
Добавить
|
Добавить
|
||||||
</button>
|
</button>
|
||||||
) : null}
|
</div>
|
||||||
</div>
|
) : null}
|
||||||
<FilterToolbar
|
<FilterToolbar
|
||||||
filters={activeConfigTableState.filters}
|
filters={activeConfigTableState.filters}
|
||||||
onOpen={() => openFilterModal(configActiveKey)}
|
onOpen={() => openFilterModal(configActiveKey)}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue