소스 검색

Design fixes.

Pushkar Anand 4 년 전
부모
커밋
37062f93ba
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  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 }>`
 const Cont = styled.div<{ disabled: boolean }>`
     background: #555 url(/image.svg) no-repeat center;
     background: #555 url(/image.svg) no-repeat center;
-    margin-right: 8px;
+    margin-right: 0 4px;
     display: inline-block;
     display: inline-block;
     width: 192px;
     width: 192px;
     height: 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 PAGE_SIZE = 12;
 const COLUMNS = 3;
 const COLUMNS = 3;
 
 
@@ -320,7 +324,7 @@ export default function Gallery() {
                                             <ListContainer>
                                             <ListContainer>
                                                 {
                                                 {
                                                     timeStampList[index].itemType === ITEM_TYPE.TIME
                                                     timeStampList[index].itemType === ITEM_TYPE.TIME
-                                                        ? timeStampList[index].date
+                                                        ? <DateContainer>{timeStampList[index].date}</DateContainer>
                                                         : timeStampList[index].items.map((item, idx) =>{
                                                         : timeStampList[index].items.map((item, idx) =>{
                                                             return getThumbnail(filteredData, timeStampList[index].itemStartIndex + idx);
                                                             return getThumbnail(filteredData, timeStampList[index].itemStartIndex + idx);
                                                         })
                                                         })