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

View file

@ -196,7 +196,7 @@ class TermViewModel implements ViewModel {
rtn.push({
elemtype: "textbutton",
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)",
onClick: () => {
globalStore.set(atoms.isTermMultiInput, false);