Skip to content

Commit ae42e2c

Browse files
authored
fix padding for header buttons (tailwind regression) (#2458)
1 parent 64d24cd commit ae42e2c

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

frontend/app/view/preview/preview-model.tsx

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -252,45 +252,37 @@ export class PreviewModel implements ViewModel {
252252
viewTextChildren.push({
253253
elemtype: "textbutton",
254254
text: "Loading ...",
255-
className: clsx(
256-
`grey warning rounded-[4px] py-[2px] px-[10px] text-[11px] font-[500]`
257-
),
255+
className: clsx(`grey rounded-[4px] !py-[2px] !px-[10px] text-[11px] font-[500]`),
258256
onClick: () => {},
259257
});
260258
} else if (fileInfo.data.readonly) {
261259
viewTextChildren.push({
262260
elemtype: "textbutton",
263261
text: "Read Only",
264-
className: clsx(
265-
`yellow warning rounded-[4px] py-[2px] px-[10px] text-[11px] font-[500]`
266-
),
262+
className: clsx(`yellow rounded-[4px] !py-[2px] !px-[10px] text-[11px] font-[500]`),
267263
onClick: () => {},
268264
});
269265
} else {
270266
viewTextChildren.push({
271267
elemtype: "textbutton",
272268
text: "Save",
273-
className: clsx(
274-
`${saveClassName} warning rounded-[4px] py-[2px] px-[10px] text-[11px] font-[500]`
275-
),
269+
className: clsx(`${saveClassName} rounded-[4px] !py-[2px] !px-[10px] text-[11px] font-[500]`),
276270
onClick: () => fireAndForget(this.handleFileSave.bind(this)),
277271
});
278272
}
279273
if (get(this.canPreview)) {
280274
viewTextChildren.push({
281275
elemtype: "textbutton",
282276
text: "Preview",
283-
className:
284-
"grey rounded-[4px] py-[2px] px-[10px] text-[11px] font-[500]",
277+
className: "grey rounded-[4px] !py-[2px] !px-[10px] text-[11px] font-[500]",
285278
onClick: () => fireAndForget(() => this.setEditMode(false)),
286279
});
287280
}
288281
} else if (get(this.canPreview)) {
289282
viewTextChildren.push({
290283
elemtype: "textbutton",
291284
text: "Edit",
292-
className:
293-
"grey rounded-[4px] py-[2px] px-[10px] text-[11px] font-[500]",
285+
className: "grey rounded-[4px] !py-[2px] !px-[10px] text-[11px] font-[500]",
294286
onClick: () => fireAndForget(() => this.setEditMode(true)),
295287
});
296288
}

frontend/app/view/term/term.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class TermViewModel implements ViewModel {
196196
rtn.push({
197197
elemtype: "textbutton",
198198
text: "Multi Input ON",
199-
className: "yellow",
199+
className: "yellow !py-[2px] !px-[10px] text-[11px] font-[500]",
200200
title: "Input will be sent to all connected terminals (click to disable)",
201201
onClick: () => {
202202
globalStore.set(atoms.isTermMultiInput, false);

0 commit comments

Comments
 (0)