Skip to content

Commit

Permalink
fix: some ui bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed Jul 13, 2023
1 parent d71a319 commit cad1038
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/widgets/shared/ArticleRightAside.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const ArticleRightAsideImpl: Component = ({ children }) => {

// if scroll to top,
// set isScrollToTop to true
else if ($.scrollTop === 0) {
else if ($.scrollTop < 20) {
setIsScrollToTop(true)
setIsScrollToBottom(false)
} else {
Expand Down
4 changes: 1 addition & 3 deletions src/components/widgets/shared/ToastCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client'

import { useId } from 'react'
import clsx from 'clsx'
import { m } from 'framer-motion'
import type { FC } from 'react'
Expand All @@ -26,13 +25,11 @@ export const ToastCard: FC<{
onClick?: () => void
}> = (props) => {
const { iconElement, message, closeToast, onClick } = props
const id = useId()

const MotionTag = onClick ? m.button : m.div

return (
<MotionTag
layoutId={id}
layout="position"
className={clsx(
'relative w-full overflow-hidden rounded-xl shadow-md shadow-slate-200 dark:shadow-stone-800',
Expand All @@ -42,6 +39,7 @@ export const ToastCard: FC<{
'space-x-4',
'flex items-center',
'select-none',
'[&>i]:flex-shrink-0',
)}
onClick={onClick}
>
Expand Down

1 comment on commit cad1038

@vercel
Copy link

@vercel vercel bot commented on cad1038 Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-git-main-innei.vercel.app
shiro-innei.vercel.app
springtide.vercel.app
innei.in

Please sign in to comment.