From 74d5ebad13bcb74b222cd3ba581205df45487034 Mon Sep 17 00:00:00 2001
From: Aisha Roslan <137568721+aisharoslan@users.noreply.github.com>
Date: Sun, 3 May 2026 15:54:01 -0400
Subject: [PATCH] fix(editor): stretch latex preview content (#14857)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
### Summary of Changes
Resolves #13340. Change align-items to stretch to full width to avoid
tag/label from overlapping with equation.
### Screenshot Verification
**Before**
**After**
## Summary by CodeRabbit
* **Style**
* Improved the vertical alignment of LaTeX block content to better
utilize container space.
---
blocksuite/affine/blocks/latex/src/styles.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blocksuite/affine/blocks/latex/src/styles.ts b/blocksuite/affine/blocks/latex/src/styles.ts
index 9cf36ba11..2c9dcde70 100644
--- a/blocksuite/affine/blocks/latex/src/styles.ts
+++ b/blocksuite/affine/blocks/latex/src/styles.ts
@@ -9,7 +9,7 @@ export const latexBlockStyles = css`
height: 100%;
padding: 10px 24px;
flex-direction: column;
- align-items: center;
+ align-items: stretch;
justify-content: center;
border-radius: 4px;
overflow-x: auto;