fix padding for header buttons (tailwind regression) (#2458)

This commit is contained in:
Mike Sawka 2025-10-20 10:09:34 -07:00 committed by GitHub
parent 64d24cd4d4
commit ae42e2ccce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 14 deletions

View file

@ -252,27 +252,21 @@ export class PreviewModel implements ViewModel {
viewTextChildren.push({ viewTextChildren.push({
elemtype: "textbutton", elemtype: "textbutton",
text: "Loading ...", text: "Loading ...",
className: clsx( className: clsx(`grey rounded-[4px] !py-[2px] !px-[10px] text-[11px] font-[500]`),
`grey warning rounded-[4px] py-[2px] px-[10px] text-[11px] font-[500]`
),
onClick: () => {}, onClick: () => {},
}); });
} else if (fileInfo.data.readonly) { } else if (fileInfo.data.readonly) {
viewTextChildren.push({ viewTextChildren.push({
elemtype: "textbutton", elemtype: "textbutton",
text: "Read Only", text: "Read Only",
className: clsx( className: clsx(`yellow rounded-[4px] !py-[2px] !px-[10px] text-[11px] font-[500]`),
`yellow warning rounded-[4px] py-[2px] px-[10px] text-[11px] font-[500]`
),
onClick: () => {}, onClick: () => {},
}); });
} else { } else {
viewTextChildren.push({ viewTextChildren.push({
elemtype: "textbutton", elemtype: "textbutton",
text: "Save", text: "Save",
className: clsx( className: clsx(`${saveClassName} rounded-[4px] !py-[2px] !px-[10px] text-[11px] font-[500]`),
`${saveClassName} warning rounded-[4px] py-[2px] px-[10px] text-[11px] font-[500]`
),
onClick: () => fireAndForget(this.handleFileSave.bind(this)), onClick: () => fireAndForget(this.handleFileSave.bind(this)),
}); });
} }
@ -280,8 +274,7 @@ export class PreviewModel implements ViewModel {
viewTextChildren.push({ viewTextChildren.push({
elemtype: "textbutton", elemtype: "textbutton",
text: "Preview", text: "Preview",
className: className: "grey rounded-[4px] !py-[2px] !px-[10px] text-[11px] font-[500]",
"grey rounded-[4px] py-[2px] px-[10px] text-[11px] font-[500]",
onClick: () => fireAndForget(() => this.setEditMode(false)), onClick: () => fireAndForget(() => this.setEditMode(false)),
}); });
} }
@ -289,8 +282,7 @@ export class PreviewModel implements ViewModel {
viewTextChildren.push({ viewTextChildren.push({
elemtype: "textbutton", elemtype: "textbutton",
text: "Edit", text: "Edit",
className: className: "grey rounded-[4px] !py-[2px] !px-[10px] text-[11px] font-[500]",
"grey rounded-[4px] py-[2px] px-[10px] text-[11px] font-[500]",
onClick: () => fireAndForget(() => this.setEditMode(true)), onClick: () => fireAndForget(() => this.setEditMode(true)),
}); });
} }

View file

@ -196,7 +196,7 @@ class TermViewModel implements ViewModel {
rtn.push({ rtn.push({
elemtype: "textbutton", elemtype: "textbutton",
text: "Multi Input ON", text: "Multi Input ON",
className: "yellow", className: "yellow !py-[2px] !px-[10px] text-[11px] font-[500]",
title: "Input will be sent to all connected terminals (click to disable)", title: "Input will be sent to all connected terminals (click to disable)",
onClick: () => { onClick: () => {
globalStore.set(atoms.isTermMultiInput, false); globalStore.set(atoms.isTermMultiInput, false);