mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-27 06:33:32 +03:00
fix: get back the missing scrollbar (#3718)
This commit is contained in:
parent
8833584756
commit
4d254f3967
@ -190,11 +190,11 @@ input[type='number']::-webkit-outer-spin-button {
|
|||||||
width: 0; /* Chrome Safari */
|
width: 0; /* Chrome Safari */
|
||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
.affine-default-viewport::-webkit-scrollbar {
|
.affine-doc-viewport::-webkit-scrollbar {
|
||||||
width: 20px; /* Chrome Safari */
|
width: 20px; /* Chrome Safari */
|
||||||
height: 20px;
|
height: 20px;
|
||||||
}
|
}
|
||||||
.affine-default-viewport::-webkit-scrollbar-thumb {
|
.affine-doc-viewport::-webkit-scrollbar-thumb {
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
@ -202,10 +202,10 @@ input[type='number']::-webkit-outer-spin-button {
|
|||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
}
|
}
|
||||||
.affine-default-viewport:hover::-webkit-scrollbar-thumb {
|
.affine-doc-viewport:hover::-webkit-scrollbar-thumb {
|
||||||
background-color: var(--affine-divider-color);
|
background-color: var(--affine-divider-color);
|
||||||
}
|
}
|
||||||
.affine-default-viewport:hover::-webkit-scrollbar-thumb:hover {
|
.affine-doc-viewport:hover::-webkit-scrollbar-thumb:hover {
|
||||||
background-color: var(--affine-icon-color);
|
background-color: var(--affine-icon-color);
|
||||||
border-width: 5px;
|
border-width: 5px;
|
||||||
}
|
}
|
||||||
|
@ -42,3 +42,11 @@ test.skip('Download client tip', async ({ page }) => {
|
|||||||
);
|
);
|
||||||
await expect(currentDownloadClientTipItem).toBeVisible();
|
await expect(currentDownloadClientTipItem).toBeVisible();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('Check the class name for the scrollbar', async ({ page }) => {
|
||||||
|
//Because the scroll bar in page mode depends on the class name of blocksuite
|
||||||
|
await openHomePage(page);
|
||||||
|
await waitEditorLoad(page);
|
||||||
|
const affineDocViewport = page.locator('.affine-doc-viewport');
|
||||||
|
await expect(affineDocViewport).toBeVisible();
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user