mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed typos
This commit is contained in:
parent
6066c91060
commit
840af25df4
17 changed files with 438 additions and 125 deletions
|
@ -21,7 +21,6 @@ const ScrollDialog: FC<IProps> = ({
|
|||
children,
|
||||
title,
|
||||
buttons,
|
||||
size = "medium",
|
||||
width = 800,
|
||||
top_sticky,
|
||||
top_sticky_offset,
|
||||
|
@ -61,7 +60,7 @@ const ScrollDialog: FC<IProps> = ({
|
|||
<div
|
||||
className={classNames(styles.content, {
|
||||
has_buttons: !!buttons,
|
||||
has_title: !!title
|
||||
has_title: true
|
||||
})}
|
||||
style={{ flexBasis: width }}
|
||||
>
|
||||
|
@ -84,6 +83,14 @@ const ScrollDialog: FC<IProps> = ({
|
|||
</div>
|
||||
)}
|
||||
|
||||
{!title && (
|
||||
<div className={styles.top}>
|
||||
<div className={styles.wrap} style={{ flexBasis: width }}>
|
||||
<div className={styles.top_cap} />
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{!!buttons && (
|
||||
<div className={styles.bottom}>
|
||||
<div className={styles.wrap} style={{ flexBasis: width }}>
|
||||
|
|
|
@ -50,6 +50,13 @@
|
|||
z-index: 2;
|
||||
}
|
||||
|
||||
.top {
|
||||
.wrap {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
.bottom {
|
||||
bottom: 15px;
|
||||
top: auto;
|
||||
|
@ -94,5 +101,22 @@
|
|||
|
||||
.children {
|
||||
background: $content_bg;
|
||||
radius: $radius;
|
||||
border-radius: $radius;
|
||||
}
|
||||
|
||||
.top_cap {
|
||||
height: $radius;
|
||||
background: $content_bg;
|
||||
border-radius: $radius $radius 0 0;
|
||||
flex: 1;
|
||||
position: relative;
|
||||
|
||||
&::after {
|
||||
position: absolute;
|
||||
content: " ";
|
||||
width: 100%;
|
||||
height: $gap;
|
||||
background: linear-gradient($content_bg, transparentize($content_bg, 1));
|
||||
bottom: -$gap;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue