Просмотр исходного кода

If no descendant page exists, ms-5 is given.

Shun Miyazawa 2 лет назад
Родитель
Сommit
74fda83cdf
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      apps/app/src/components/TreeItem/SimpleItem.tsx

+ 2 - 0
apps/app/src/components/TreeItem/SimpleItem.tsx

@@ -208,6 +208,8 @@ export const SimpleItem: FC<SimpleItemProps> = (props) => {
           )}
         </div>
 
+        {!hasDescendants && <span className="d-flex justify-content-center ms-5" />}
+
         <SimpleItemContent page={page} />
 
         {EndComponents.map((EndComponent, index) => (