fix(opencode): improve skills dialog readability (#12356)

This commit is contained in:
Andrew Pashynnyk
2026-02-06 01:35:35 +02:00
committed by GitHub
parent 579902ace6
commit 2e9a63fe4f

View File

@@ -18,9 +18,10 @@ export function DialogSkill(props: DialogSkillProps) {
const options = createMemo<DialogSelectOption<string>[]>(() => {
const list = skills() ?? []
const maxWidth = Math.max(0, ...list.map((s) => s.name.length))
return list.map((skill) => ({
title: skill.name,
description: skill.description,
title: skill.name.padEnd(maxWidth),
description: skill.description?.replace(/\s+/g, " ").trim(),
value: skill.name,
category: "Skills",
onSelect: () => {