mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
🐛 Fix On budget / Off budget underline with translated languages (#4417)
* Fix `On budget` / `Off budget` underline * md
This commit is contained in:
@@ -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',
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
6
upcoming-release-notes/4417.md
Normal file
6
upcoming-release-notes/4417.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [lelemm]
|
||||
---
|
||||
|
||||
Fix `On budget` / `Off budget` underline with translated languages
|
||||
Reference in New Issue
Block a user