fix: anchor dashboard rail labels

This commit is contained in:
Thomas Camlong committed 2026-08-09 18:03:38 +02:00
1 parent ca9d836fac
commit 5e68aab970
2 files changed
+10

No files matched your search

@@ -36,6 +36,7 @@
.gutter[data-board-editing="true"]::before {
position: sticky;
top: 0;
inset-inline-start: 0;
z-index: 2;
display: block;
width: fit-content;
+9
View File
@@ -990,6 +990,15 @@ describe("Board grid", () => {
const emptyRightGutter = page.getByRole("complementary", { name: "Right dashboard rail" });
await expect(emptyRightGutter).toHaveCount(1);
expect((await expectBoundingBoxAsync(emptyRightGutter)).width).toBeGreaterThan(0);
await page.getByTestId("board-edit-mode-toggle").click();
await expect(emptyRightGutter).toHaveAttribute("data-board-editing", "true");
expect(
await emptyRightGutter.evaluate((element) => ({
content: getComputedStyle(element, "::before").content.replaceAll('"', ""),
insetInlineStart: getComputedStyle(element, "::before").insetInlineStart,
top: getComputedStyle(element, "::before").top,
})),
).toEqual({ content: "Right dashboard rail", insetInlineStart: "0px", top: "0px" });
expect(pageErrors).toEqual([]);
} finally {
runtimeResources?.stop();