Bladeren bron

Design fixes.

Pushkar Anand 4 jaren geleden
bovenliggende
commit
37062f93ba
2 gewijzigde bestanden met toevoegingen van 6 en 2 verwijderingen
  1. 1 1
      src/pages/gallery/components/PreviewCard.tsx
  2. 5 1
      src/pages/gallery/index.tsx

+ 1 - 1
src/pages/gallery/components/PreviewCard.tsx

@@ -12,7 +12,7 @@ interface IProps {
 
 const Cont = styled.div<{ disabled: boolean }>`
     background: #555 url(/image.svg) no-repeat center;
-    margin-right: 8px;
+    margin-right: 0 4px;
     display: inline-block;
     width: 192px;
     height: 192px;

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

@@ -72,6 +72,10 @@ const ListContainer = styled.div`
     }
 `;
 
+const DateContainer = styled.div`
+    padding: 0 4px;
+`;
+
 const PAGE_SIZE = 12;
 const COLUMNS = 3;
 
@@ -320,7 +324,7 @@ export default function Gallery() {
                                             <ListContainer>
                                                 {
                                                     timeStampList[index].itemType === ITEM_TYPE.TIME
-                                                        ? timeStampList[index].date
+                                                        ? <DateContainer>{timeStampList[index].date}</DateContainer>
                                                         : timeStampList[index].items.map((item, idx) =>{
                                                             return getThumbnail(filteredData, timeStampList[index].itemStartIndex + idx);
                                                         })