1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixed panel appearance

This commit is contained in:
Fedor Katurov 2020-04-30 11:23:02 +07:00
parent c3e92e1b47
commit 7f372bb025
2 changed files with 12 additions and 11 deletions

View file

@ -62,7 +62,7 @@ const NodePanelInner: FC<IProps> = memo(
{can_edit && (
<div className={styles.editor_menu}>
<div className={styles.editor_menu_button}>
<Icon icon="dots-vertical" size={24} onClick={onStar} />
<Icon icon="dots-vertical" size={24} />
</div>
<div className={styles.editor_buttons}>

View file

@ -253,18 +253,19 @@
}
.editor_menu {
// position: relative;
&:hover {
.editor_buttons {
display: flex;
position: absolute;
right: 0;
top: 100%;
background: darken($content_bg, 4%);
padding: $gap $gap * 2;
border-radius: $radius;
box-shadow: transparentize(black, 0.8) 5px 5px 5px;
@include tablet {
display: flex;
position: absolute;
right: 0;
top: 100%;
background: darken($content_bg, 4%);
padding: $gap * 2;
border-radius: $radius;
box-shadow: transparentize(black, 0.8) 5px 5px 5px;
transform: translate(0, -10px);
}
}
}
}