fix: prevent text overflow in metabar

This commit is contained in:
EnixCoda 2022-08-20 00:39:22 +08:00
parent dd32f75941
commit f32711085d
2 changed files with 4 additions and 0 deletions

View file

@ -36,6 +36,8 @@ export function MetaBar() {
onClick={createAnchorClickHandler(branchUrl)}
sx={{
color: 'fg.muted',
wordBreak: 'normal',
overflowWrap: 'anywhere',
}}
{...platform.delegateFastRedirectAnchorProps?.()}
>

View file

@ -463,6 +463,8 @@ html[data-with-gitako-spacing='true'] {
a {
color: var(--color-accent-fg);
white-space: normal;
word-break: normal;
overflow-wrap: anywhere; // break-word does not break on `_`
}
}
}