fix: anchor dashboard rail labels
This commit is contained in:
2 files changed
+10
No files matched your search
@@ -36,6 +36,7 @@
|
|||||||
.gutter[data-board-editing="true"]::before {
|
.gutter[data-board-editing="true"]::before {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
inset-inline-start: 0;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
display: block;
|
display: block;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
|||||||
@@ -990,6 +990,15 @@ describe("Board grid", () => {
|
|||||||
const emptyRightGutter = page.getByRole("complementary", { name: "Right dashboard rail" });
|
const emptyRightGutter = page.getByRole("complementary", { name: "Right dashboard rail" });
|
||||||
await expect(emptyRightGutter).toHaveCount(1);
|
await expect(emptyRightGutter).toHaveCount(1);
|
||||||
expect((await expectBoundingBoxAsync(emptyRightGutter)).width).toBeGreaterThan(0);
|
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([]);
|
expect(pageErrors).toEqual([]);
|
||||||
} finally {
|
} finally {
|
||||||
runtimeResources?.stop();
|
runtimeResources?.stop();
|
||||||
|
|||||||
Reference in new issue
Block a user