Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
docs: sit the file-name tab flush with its code block (#4078)
Maximilian Roosdd389339f0ba
diff --git a/docs/src/styles/custom.css b/docs/src/styles/custom.cssindex a89d75b6c..5a5870b29 100644--- a/docs/src/styles/custom.css+++ b/docs/src/styles/custom.css@@ -530,10 +530,14 @@ header.header {background: transparent;}+.expressive-code .frame.has-title .header::before {+ content: none;+}++/* The file tab shares the left edge of its code. */.expressive-code .frame.has-title .title {width: auto;- max-width: calc(100% - 1.2rem);- margin-inline-start: 0.6rem;+ max-width: 100%;overflow: hidden;border: 1px solid var(--wt-line);border-block-end: 0;diff --git a/docs/tests/browser-site.test.mjs b/docs/tests/browser-site.test.mjsindex 25a79b642..cb26f7f25 100644--- a/docs/tests/browser-site.test.mjs+++ b/docs/tests/browser-site.test.mjs@@ -434,6 +434,8 @@ test('code artifacts keep their visual hierarchy in both themes', async () => {title: title.textContent,titleBottom: title.getBoundingClientRect().bottom,codeTop: pre.getBoundingClientRect().top,+ titleLeft: title.getBoundingClientRect().left,+ codeLeft: pre.getBoundingClientRect().left,titleFont: getComputedStyle(title).fontFamily,titleColor: getComputedStyle(title).color,titleBackground: getComputedStyle(title).backgroundColor,@@ -449,6 +451,10 @@ test('code artifacts keep their visual hierarchy in both themes', async () => {Math.abs(fileFrame.titleBottom - fileFrame.codeTop) < 1,`${theme} file label is detached from its code`,);+ assert.ok(+ Math.abs(fileFrame.titleLeft - fileFrame.codeLeft) < 1,+ `${theme} file label is inset from its code`,+ );assert.notEqual(fileFrame.titleBackground,fileFrame.codeBackground,