1
0

fix pane sizing on desktop

This commit is contained in:
Nicola Clark 2024-10-12 11:36:03 -05:00
parent 75445601aa
commit 3049446f65
Signed by: nicola
GPG Key ID: 3E1710E7FF08956C
2 changed files with 12 additions and 1 deletions

View File

@ -27,7 +27,7 @@
}
@media screen and (min-width: @sizes[lg]) {
flex-grow: 1;
width: 50%;
&.preview {
display: unset !important;

View File

@ -19,3 +19,14 @@ test('desktop page has no "preview" nav item', async ({ page }) => {
await page.goto('/');
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);
});