mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
improve confirm modal style
This commit is contained in:
parent
564cecd2f0
commit
d2ce57f843
@ -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}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user