Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

fix(web): keep bare links readable

Joshua834acc9b11c1
diff --git a/apps/web/src/styles/app-css.test.ts b/apps/web/src/styles/app-css.test.ts
index 9ccc49af..68e5cec9 100644
--- a/apps/web/src/styles/app-css.test.ts
+++ b/apps/web/src/styles/app-css.test.ts
@@ -391,6 +391,17 @@ describe('app CSS visual contracts', () => {
expect(action).toContain('font-size: 12px;');
});
+ it('keeps bare links from collapsing to one character per line', () => {
+ const link = cssBlock('.markdown-prose .md-link-bare:has(.md-link-site-icon)');
+ const label = cssBlock(
+ '.markdown-prose .md-link-bare:has(.md-link-site-icon) .md-link-label'
+ );
+
+ expect(link).toContain('max-width: 100%;');
+ expect(label).toContain('overflow-wrap: break-word;');
+ expect(label).not.toContain('overflow-wrap: anywhere;');
+ });
+
it('keeps the desktop skill market scrollable inside the fixed app shell', () => {
expect(skillMarketCss).toMatch(
/@media \(min-width: 921px\)\s*\{\s*\.skill-market\s*\{[^}]*height:\s*100%;[^}]*min-height:\s*0;[^}]*overflow-x:\s*hidden;[^}]*overflow-y:\s*auto;/
diff --git a/apps/web/src/styles/app.css b/apps/web/src/styles/app.css
index 8ef43ccf..85a7ce7d 100644
--- a/apps/web/src/styles/app.css
+++ b/apps/web/src/styles/app.css
@@ -6934,7 +6934,7 @@ html.is-pane-resizing * {
.markdown-prose .md-link-bare:has(.md-link-site-icon) .md-link-label {
min-width: 0;
- overflow-wrap: anywhere;
+ overflow-wrap: break-word;
}
.markdown-prose .md-link-site-icon {