feat: Enable add button in ActionsList based on multipleAction prop and style disabled state in sidebar
This commit is contained in:
parent
897633d4cc
commit
2da211f464
|
@ -116,11 +116,14 @@ const ActionsList: React.FC<ActionsListProps> = ({
|
||||||
<div className="actions">
|
<div className="actions">
|
||||||
<div className="header">
|
<div className="header">
|
||||||
<div className="header-value">Actions</div>
|
<div className="header-value">Actions</div>
|
||||||
{multipleAction && (
|
|
||||||
<button className="add-button" onClick={() => handleAddAction()}>
|
<button
|
||||||
|
className="add-button"
|
||||||
|
onClick={() => handleAddAction()}
|
||||||
|
disabled={!multipleAction}
|
||||||
|
>
|
||||||
<AddIcon /> Add
|
<AddIcon /> Add
|
||||||
</button>
|
</button>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="lists-main-container"
|
className="lists-main-container"
|
||||||
|
|
|
@ -731,6 +731,9 @@
|
||||||
path {
|
path {
|
||||||
stroke: var(--primary-color);
|
stroke: var(--primary-color);
|
||||||
}
|
}
|
||||||
|
&:disabled {
|
||||||
|
background-color: var(--text-disabled);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -799,14 +802,15 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 2px 0;
|
margin: 2px 0;
|
||||||
border-radius: #{$border-radius-small};
|
border-radius: #{$border-radius-small};
|
||||||
}
|
|
||||||
|
|
||||||
.value {
|
.value {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
min-width: 80%;
|
min-width: 80%;
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
|
.input-value {
|
||||||
|
text-align: start;
|
||||||
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
@ -814,6 +818,7 @@
|
||||||
accent-color: var(--accent-color);
|
accent-color: var(--accent-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
background: var(--highlight-accent-color);
|
background: var(--highlight-accent-color);
|
||||||
|
|
Loading…
Reference in New Issue