mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-09-30 00:41:09 +00:00
Fix lottie animations
This commit is contained in:
parent
2fc28409cd
commit
a7eec46a27
@ -85,6 +85,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.normal {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.context {
|
||||
background: none;
|
||||
display: flex;
|
||||
|
@ -48,7 +48,7 @@ const NoteFooter: Component<{
|
||||
let footerDiv: HTMLDivElement | undefined;
|
||||
let repostMenu: HTMLDivElement | undefined;
|
||||
|
||||
const size = () => props.size || 'normal';
|
||||
const size = () => props.size ?? 'normal';
|
||||
|
||||
const repostMenuItems: MenuItem[] = [
|
||||
{
|
||||
@ -225,12 +225,17 @@ const NoteFooter: Component<{
|
||||
return;
|
||||
}
|
||||
|
||||
let newLeft = size() === 'wide' ? 15 : 13;
|
||||
let newTop = size() === 'wide' ? -6 : -6;
|
||||
let newLeft = 33;
|
||||
let newTop = -6;
|
||||
|
||||
if (props.large) {
|
||||
newLeft = 2;
|
||||
newTop = -9;
|
||||
if (size() === 'wide' && props.large) {
|
||||
newLeft = 14;
|
||||
newTop = -10;
|
||||
}
|
||||
|
||||
if (size() === 'short') {
|
||||
newLeft = 14;
|
||||
newTop = -6;
|
||||
}
|
||||
|
||||
medZapAnimation.style.left = `${newLeft}px`;
|
||||
|
Loading…
Reference in New Issue
Block a user