Skip to content

Commit

Permalink
improve layout and font size
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-takei committed Mar 30, 2024
1 parent 976abf5 commit 76d3591
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ const PageItem = memo(({ page, isSmall, onClickTag }: PageItemProps): JSX.Elemen
const linkedPagePathFormer = new LinkedPagePath(dPagePath.former);
const linkedPagePathLatter = new LinkedPagePath(dPagePath.latter);
const FormerLink = () => (
<div className={`${formerLinkClass} ${isSmall ? 'text-truncate' : ''} small`}>
<div className={`${formerLinkClass} ${isSmall ? 'text-truncate small' : ''}`}>
<PagePathHierarchicalLink linkedPagePath={linkedPagePathFormer} />
</div>
);

let locked;
if (page.grant !== 1) {
locked = <span className="material-symbols-outlined ms-2">lock</span>;
locked = <span className="material-symbols-outlined ms-2 fs-6">lock</span>;
}

const isTagElementsRendered = !(isSmall || (page.tags.length === 0));
Expand All @@ -114,7 +114,7 @@ const PageItem = memo(({ page, isSmall, onClickTag }: PageItemProps): JSX.Elemen
<UserPicture user={page.lastUpdateUser} size="md" noTooltip />

<div className="flex-grow-1 ms-2">
<div className={`row ${isSmall ? 'gy-0' : 'gy-2'}`}>
<div className={`row ${isSmall ? 'gy-0' : 'gy-1'}`}>

<div className="col-12">
{ !dPagePath.isRoot && <FormerLink /> }
Expand Down

0 comments on commit 76d3591

Please sign in to comment.