improve confirm modal style

This commit is contained in:
SrGooglo 2025-04-09 14:15:22 +00:00
parent 564cecd2f0
commit d2ce57f843
2 changed files with 106 additions and 82 deletions

View File

@ -32,8 +32,8 @@ function ConfirmModal(props) {
}
return (
<div className="drawer_close_confirm">
<div className="drawer_close_confirm_content">
<div className="app-modal_confirm">
<div className="app-modal_confirm_content">
<h1>{props.headerText ?? "Are you sure?"}</h1>
{props.descriptionText && <p>{props.descriptionText}</p>}
@ -41,7 +41,7 @@ function ConfirmModal(props) {
{typeof props.render === "function" && props.render()}
<div className="drawer_close_confirm_actions">
<div className="app-modal_confirm_actions">
<Button
onClick={() => close({ confirm: false })}
disabled={loading}

View File

@ -18,13 +18,14 @@
transition: all 150ms ease-in-out;
font-size: 0.9rem;
#mask_trigger {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
}
@ -34,7 +35,7 @@
display: flex;
flex-direction: column;
padding: 30px;
padding: 20px;
background-color: var(--background-color-accent);
@ -117,3 +118,26 @@
}
}
}
.app-modal_confirm {
display: flex;
flex-direction: column;
gap: 15px;
width: 100%;
.app-modal_confirm_content {
display: flex;
flex-direction: column;
gap: 2px;
}
.app-modal_confirm_actions {
display: flex;
flex-direction: row;
gap: 10px;
}
}