Skip to content

Commit

Permalink
Improve legal info box
Browse files Browse the repository at this point in the history
Hide separator when credits are empty.

REDMINE-20093
  • Loading branch information
tf committed Dec 11, 2023
1 parent 6e4887d commit 108aecc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ export function LegalInfoMenu(props) {
dangerouslySetInnerHTML={{__html: credits}}></p>
}

{fileRights.length &&
{fileRights.length > 0 &&
<div className={styles.section}>
<strong>{t('pageflow_scrolled.public.media')}</strong> {renderFileRights(fileRights)}
</div>
}
</div>

<div className={styles.links}>
<div className={classNames(styles.links, {[styles.separator]: credits || fileRights.length > 0})}>
<LegalInfoLink {...legalInfo.imprint}/>
<LegalInfoLink {...legalInfo.copyright}/>
<LegalInfoLink {...legalInfo.privacy}/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
padding-bottom: 5px;
}

.links::before {
.separator::before {
content: "";
position: absolute;
top: 0;
Expand Down

0 comments on commit 108aecc

Please sign in to comment.