浏览代码

Fix fab button UI.

Pushkar Anand 4 年之前
父节点
当前提交
e98ae28856
共有 3 个文件被更改,包括 8 次插入7 次删除
  1. 6 5
      src/components/FavButton.tsx
  2. 1 1
      src/components/PhotoSwipe/PhotoSwipe.tsx
  3. 1 1
      src/pages/gallery/index.tsx

文件差异内容过多而无法显示
+ 6 - 5
src/components/FavButton.tsx


+ 1 - 1
src/components/PhotoSwipe/PhotoSwipe.tsx

@@ -164,7 +164,7 @@ function PhotoSwipe(props: Iprops) {
                             title="Toggle fullscreen"
                         />
                         <button className="pswp__button pswp__button--zoom" title="Zoom in/out" />
-                        <FavButton isClick={isFav} onClick={() => { onFavClick(photoSwipe?.currItem) }} />
+                        <FavButton size={44} isClick={isFav} onClick={() => { onFavClick(photoSwipe?.currItem) }} />
                         <div className="pswp__preloader">
                             <div className="pswp__preloader__icn">
                                 <div className="pswp__preloader__cut">

+ 1 - 1
src/pages/gallery/index.tsx

@@ -183,7 +183,7 @@ export default function Gallery(props) {
 
     const handleClose = () => {
         setOpen(false);
-        setReload(Math.random());
+        // setReload(Math.random());
     };
 
     const onThumbnailClick = (index: number) => () => {

部分文件因为文件数量过多而无法显示