🐛 Fix On budget / Off budget underline with translated languages (#4417)

* Fix `On budget` / `Off budget` underline

* md
This commit is contained in:
lelemm
2025-02-20 15:47:40 -03:00
committed by GitHub
parent 8d3b046bef
commit bde99b75ae
3 changed files with 11 additions and 1 deletions

View File

@@ -62,6 +62,7 @@ type AccountProps<FieldName extends SheetFields<'account'>> = {
outerStyle?: CSSProperties;
onDragChange?: OnDragChangeCallback<{ id: string }>;
onDrop?: OnDropCallback;
titleAccount?: boolean;
};
export function Account<FieldName extends SheetFields<'account'>>({
@@ -77,6 +78,7 @@ export function Account<FieldName extends SheetFields<'account'>>({
outerStyle,
onDragChange,
onDrop,
titleAccount,
}: AccountProps<FieldName>) {
const type = account
? account.closed
@@ -178,7 +180,7 @@ export function Account<FieldName extends SheetFields<'account'>>({
<AlignedText
style={
(name === 'Off budget' || name === 'On budget') && {
titleAccount && {
borderBottom: `1.5px solid rgba(255,255,255,0.4)`,
paddingBottom: '3px',
}

View File

@@ -108,6 +108,7 @@ export function Accounts() {
marginTop: 13,
marginBottom: 5,
}}
titleAccount={true}
/>
)}
@@ -138,6 +139,7 @@ export function Accounts() {
marginTop: 13,
marginBottom: 5,
}}
titleAccount={true}
/>
)}

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [lelemm]
---
Fix `On budget` / `Off budget` underline with translated languages