소스 검색

add styles

kosei-n 2 년 전
부모
커밋
459af9accc
2개의 변경된 파일13개의 추가작업 그리고 1개의 파일을 삭제
  1. 12 0
      apps/app/src/components/PageHeader/PagePathHeader.module.scss
  2. 1 1
      apps/app/src/components/PageHeader/PagePathHeader.tsx

+ 12 - 0
apps/app/src/components/PageHeader/PagePathHeader.module.scss

@@ -17,3 +17,15 @@
     }
   }
 }
+
+// .ellipsize-left {
+//   width: 200px;
+//   overflow: hidden;
+//   text-align: left;
+//   text-overflow: ellipsis;
+//   /* Standard CSS ellipsis */
+//   white-space: nowrap;
+
+//   /* Beginning of string */
+//   direction: rtl;
+// }

+ 1 - 1
apps/app/src/components/PageHeader/PagePathHeader.tsx

@@ -115,7 +115,7 @@ export const PagePathHeader: FC<Props> = (props) => {
           </div>
         ) }
         <div
-          className={`${isRenameInputShown ? 'invisible' : ''} text-truncate`}
+          className={`${isRenameInputShown ? 'invisible' : ''} ${styles['ellipsize-left']}`}
           style={{ direction: 'rtl' }}
         >
           <PagePathHierarchicalLink linkedPagePath={linkedPagePath} />