upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
Showing only changes of commit 5e617c6527 - Show all commits

View File

@ -22,12 +22,13 @@ const ScrollTopAndComment = () => {
document.getElementById('comment').scrollIntoView() document.getElementById('comment').scrollIntoView()
} }
return ( return (
<div className="fixed flex-col hidden gap-3 right-8 bottom-8 md:flex"> <div
className={`fixed flex-col hidden gap-3 right-8 bottom-8 ${show ? 'md:flex' : 'md:hidden'}`}
>
<button <button
aria-label="Scroll To Comment" aria-label="Scroll To Comment"
type="button" type="button"
onClick={handleScrollToComment} onClick={handleScrollToComment}
style={{ opacity: show ? 1 : 0 }}
className="p-2 text-gray-500 transition-all bg-gray-200 rounded-full dark:text-gray-400 dark:bg-gray-700 dark:hover:bg-gray-600 hover:bg-gray-300" className="p-2 text-gray-500 transition-all bg-gray-200 rounded-full dark:text-gray-400 dark:bg-gray-700 dark:hover:bg-gray-600 hover:bg-gray-300"
> >
<svg className="w-5 h-5" viewBox="0 0 20 20" fill="currentColor"> <svg className="w-5 h-5" viewBox="0 0 20 20" fill="currentColor">
@ -42,7 +43,6 @@ const ScrollTopAndComment = () => {
aria-label="Scroll To Top" aria-label="Scroll To Top"
type="button" type="button"
onClick={handleScrollTop} onClick={handleScrollTop}
style={{ opacity: show ? 1 : 0 }}
className="p-2 text-gray-500 transition-all bg-gray-200 rounded-full dark:text-gray-400 dark:bg-gray-700 dark:hover:bg-gray-600 hover:bg-gray-300" className="p-2 text-gray-500 transition-all bg-gray-200 rounded-full dark:text-gray-400 dark:bg-gray-700 dark:hover:bg-gray-600 hover:bg-gray-300"
> >
<svg className="w-5 h-5" viewBox="0 0 20 20" fill="currentColor"> <svg className="w-5 h-5" viewBox="0 0 20 20" fill="currentColor">