[PR #12698] [CLOSED] fix: Add text-sm class to the code editor div to reduce font size. #46053

Closed
opened 2026-04-29 20:42:59 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/12698
Author: @robertpiosik
Created: 4/10/2025
Status: Closed

Base: devHead: fix-font-size


📝 Commits (1)

  • bd448c3 Add text-sm class to the code editor div to reduce font size.

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/lib/components/common/CodeEditor.svelte (+1 -1)

📄 Description

Description

  • Default font size is 1rem (16px) what yields very large text in monospace. Code blocks should have 14 px (0.875 rem).

Fixes #12693

Added

  • Added class name text-sm

Screenshots or Videos

Second code block has class name applied:

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/12698 **Author:** [@robertpiosik](https://github.com/robertpiosik) **Created:** 4/10/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix-font-size` --- ### 📝 Commits (1) - [`bd448c3`](https://github.com/open-webui/open-webui/commit/bd448c3dc7a72953f13784cfa3369bcff5489b67) Add `text-sm` class to the code editor div to reduce font size. ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/common/CodeEditor.svelte` (+1 -1) </details> ### 📄 Description ### Description - Default font size is 1rem (16px) what yields very large text in monospace. Code blocks should have 14 px (0.875 rem). Fixes #12693 ### Added - Added class name `text-sm` ### Screenshots or Videos Second code block has class name applied: ![image](https://github.com/user-attachments/assets/63426fa0-6697-4f9c-9664-547dedd84386) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 20:42:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#46053