mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-24 09:18:27 +00:00
fix padding for header buttons (tailwind regression) (#2458)
This commit is contained in:
parent
64d24cd4d4
commit
ae42e2ccce
2 changed files with 6 additions and 14 deletions
|
|
@ -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)),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue