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;
|
||||
}
|
||||
|
||||
.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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
{canCreateInConfig && configActiveKey ? (
|
||||
<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>
|
||||
</div>
|
||||
) : null}
|
||||
<FilterToolbar
|
||||
filters={activeConfigTableState.filters}
|
||||
onOpen={() => openFilterModal(configActiveKey)}
|
||||
|
|
|
|||
Loading…
Reference in a new issue