Skip to content

Commit af0b7d4

Browse files
fix: Prevent task list checkboxes from shrinking for consistent alignment (open-webui#22886)
1 parent 00cb7f5 commit af0b7d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@
241241
<li class="text-start">
242242
{#if item?.task}
243243
<input
244-
class=" translate-y-[1px] -translate-x-1"
244+
class=" translate-y-[1px] -translate-x-1 flex-shrink-0"
245245
type="checkbox"
246246
checked={item.checked}
247247
on:change={(e) => {
@@ -276,7 +276,7 @@
276276
<li class="text-start {item?.task ? 'flex -translate-x-6.5 gap-3 ' : ''}">
277277
{#if item?.task}
278278
<input
279-
class=""
279+
class="flex-shrink-0"
280280
type="checkbox"
281281
checked={item.checked}
282282
on:change={(e) => {

0 commit comments

Comments
 (0)