Merge branch 'fork' into frontend-rw
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
commit
9a0de1e4bb
4 changed files with 17 additions and 8 deletions
|
@ -52,7 +52,7 @@ const ScrollTopButton: React.FC<IScrollTopButton> = ({
|
|||
|
||||
setScrolled(scrollTop > threshold);
|
||||
setScrolledTop(scrollTop <= autoloadThreshold);
|
||||
}, 150, { trailing: true }), [threshold, autoloadThreshold]);
|
||||
}, 40, { trailing: true }), [threshold, autoloadThreshold]);
|
||||
|
||||
/** Scroll to top and trigger `onClick`. */
|
||||
const handleClick: React.MouseEventHandler = useCallback(() => {
|
||||
|
@ -82,7 +82,7 @@ const ScrollTopButton: React.FC<IScrollTopButton> = ({
|
|||
}
|
||||
|
||||
return (
|
||||
<div className='fixed left-1/2 top-16 z-50 -translate-x-1/2 lg:top-2'>
|
||||
<div className='fixed left-1/2 top-2 z-50 -translate-x-1/2'>
|
||||
<button
|
||||
className='flex cursor-pointer items-center space-x-1.5 whitespace-nowrap rounded-full bg-primary-600 px-4 py-2 text-white transition-transform hover:scale-105 hover:bg-primary-700 active:scale-100'
|
||||
onClick={handleClick}
|
||||
|
|
|
@ -193,7 +193,8 @@ const ComposeEditor = React.forwardRef<LexicalEditor, IComposeEditor>(({
|
|||
'h-full': fullScreen,
|
||||
'min-h-[39px]': condensed,
|
||||
'min-h-[99px]': !condensed,
|
||||
})}
|
||||
},
|
||||
)}
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
|
|
|
@ -306,7 +306,7 @@ const ImageComponent = ({
|
|||
return (
|
||||
<Suspense fallback={null}>
|
||||
<>
|
||||
<div className='relative' draggable={draggable} onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave} onClick={handleClick} role='button'>
|
||||
<div className='relative' draggable={draggable} onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave} onClick={handleClick} role='button'>
|
||||
<HStack className='absolute right-2 top-2 z-10' space={2}>
|
||||
<IconButton
|
||||
onClick={previewImage}
|
||||
|
|
|
@ -12,13 +12,21 @@
|
|||
h3 {
|
||||
@apply text-xl font-black;
|
||||
}
|
||||
|
||||
hr {
|
||||
@apply mb-4;
|
||||
|
||||
&:last-child {
|
||||
@apply mb-0;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
@apply mb-4 whitespace-pre-wrap;
|
||||
}
|
||||
|
||||
p:last-child {
|
||||
@apply mb-0;
|
||||
|
||||
&:last-child {
|
||||
@apply mb-0;
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
|
|
Loading…
Reference in a new issue