Browse Source

Fix fab button UI.

Pushkar Anand 4 years ago
parent
commit
e98ae28856

File diff suppressed because it is too large
+ 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) => () => {

Some files were not shown because too many files changed in this diff