From 49f9cc7c4d0ee9bebf663f17d41a3814ee126ce9 Mon Sep 17 00:00:00 2001 From: Nirmal Kumar R Date: Fri, 8 May 2026 08:01:34 +0200 Subject: [PATCH] chore: dialog modal max-width rendering failure (#12469) The dialog element shrink wrap up to the max-width boundary. The `long-modal` is set to strictly fit the `800px` width in the test. However with Playwright minor font rendering differences makes the dialog modal width resulting in `797px`. Test fails at: [expect(width).toBe(800);](https://codeberg.org/forgejo/forgejo/src/commit/6132d0e4069e0043c41302e300c6d3a5ab7b8ccc/tests/e2e/modal.test.e2e.ts#L103) The fix is to increase the content of the `#long-model` element in `templates/demo/model.tmpl` to 300 characters length instead of the current `100` characters length ensures that the dialog modal will always hit the `800px` max-width. Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12469 Reviewed-by: 0ko <0ko@noreply.codeberg.org> --- templates/demo/modal.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/demo/modal.tmpl b/templates/demo/modal.tmpl index 746d82b229..af4c1295ef 100644 --- a/templates/demo/modal.tmpl +++ b/templates/demo/modal.tmpl @@ -30,7 +30,7 @@
Long modal
-
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
+
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa