fix pane sizing on desktop
This commit is contained in:
parent
75445601aa
commit
3049446f65
@ -27,7 +27,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: @sizes[lg]) {
|
@media screen and (min-width: @sizes[lg]) {
|
||||||
flex-grow: 1;
|
width: 50%;
|
||||||
|
|
||||||
&.preview {
|
&.preview {
|
||||||
display: unset !important;
|
display: unset !important;
|
||||||
|
@ -19,3 +19,14 @@ test('desktop page has no "preview" nav item', async ({ page }) => {
|
|||||||
await page.goto('/');
|
await page.goto('/');
|
||||||
await expect(page.getByRole('tab').filter({ hasText: 'preview' })).toBeHidden();
|
await expect(page.getByRole('tab').filter({ hasText: 'preview' })).toBeHidden();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('desktop page has equal width for both columns', async ({ page }) => {
|
||||||
|
await page.goto('/');
|
||||||
|
const { width: contentWidth } = (await page.getByTestId('content-pane').boundingBox()) ?? {
|
||||||
|
width: -1,
|
||||||
|
};
|
||||||
|
const { width: previewWidth } = (await page.getByTestId('preview-pane').boundingBox()) ?? {
|
||||||
|
width: -2,
|
||||||
|
};
|
||||||
|
expect(contentWidth).toEqual(previewWidth);
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user