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

fixed paddings

This commit is contained in:
Fedor Katurov 2020-04-21 17:20:32 +07:00
parent 650e62cfa1
commit e1991453a1
3 changed files with 5 additions and 6 deletions

View file

@ -9,9 +9,9 @@
position: absolute; position: absolute;
background: transparentize(black, 0.5); background: transparentize(black, 0.5);
display: flex; display: flex;
right: $gap; right: 0;
top: $gap; top: 0;
border-radius: 24px; border-radius: 8px;
padding: 0 3px; padding: 0 3px;
flex-wrap: wrap; flex-wrap: wrap;
transition: background-color 0.5s; transition: background-color 0.5s;

View file

@ -166,7 +166,7 @@ const NodeImageSlideBlock: FC<IProps> = ({
if (!wrap.current) return; if (!wrap.current) return;
const { width } = wrap.current.getBoundingClientRect(); const { width } = wrap.current.getBoundingClientRect();
// setMaxHeight(width * NODE_SETTINGS.MAX_IMAGE_ASPECT); // setMaxHeight(width * NODE_SETTINGS.MAX_IMAGE_ASPECT);
setMaxHeight(window.innerHeight - 175); setMaxHeight(window.innerHeight - 152);
normalizeOffset(); normalizeOffset();
}, [wrap, setMaxHeight, normalizeOffset]); }, [wrap, setMaxHeight, normalizeOffset]);

View file

@ -5,7 +5,6 @@
width: 100%; width: 100%;
transition: height 0.25s; transition: height 0.25s;
border-radius: $radius; border-radius: $radius;
margin-bottom: 20px;
.is_loading { .is_loading {
.placeholder { .placeholder {
@ -25,7 +24,7 @@
user-select: none; user-select: none;
will-change: transform, height; will-change: transform, height;
transition: height 500ms, transform 500ms; transition: height 500ms, transform 500ms;
padding: 10px 0; padding: 0 0 20px 0;
&:active { &:active {
transition: none; transition: none;