Skip to content

Commit c3181e8

Browse files
committed
fix(home): wrap long source URLs inside the badge tooltip
A source error carries the source URL verbatim ("source <url> not found"). The scoped rule on the corner badge tooltip switched the inherited nowrap to pre-line, which wraps only at break opportunities, and a URL has none: the message ran past the bubble's 20rem cap and over the table behind it. Break anywhere so the text stays inside the bubble, and so the bubble's min-content width no longer pushes it off narrow layouts.
1 parent 6a92cf9 commit c3181e8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎web/static/src/page/home/index.vue‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,9 @@ import DownloadIcon from "@/assets/icons/download.svg";
997997
.atv-indicator-tip::before {
998998
white-space: pre-line;
999999
text-align: left;
1000+
/* Source errors carry unbreakable URLs: break them so the text stays
1001+
inside the bubble instead of running over it and the table behind. */
1002+
overflow-wrap: anywhere;
10001003
}
10011004
10021005
.atv-source-line .badge-info {

0 commit comments

Comments
 (0)
⌂ 换网址