A local-first personal finance app
Fix notes icon changing size/position with long category or group names (#2773)
Joris Pelgrömd79b8c6cb26f
diff --git a/packages/desktop-client/src/components/budget/SidebarCategory.tsx b/packages/desktop-client/src/components/budget/SidebarCategory.tsxindex c8986725fe..ab5a20fa34 100644--- a/packages/desktop-client/src/components/budget/SidebarCategory.tsx+++ b/packages/desktop-client/src/components/budget/SidebarCategory.tsx@@ -117,11 +117,13 @@ export function SidebarCategory({</Popover></View><View style={{ flex: 1 }} />- <NotesButton- id={category.id}- style={dragging && { color: 'currentColor' }}- defaultColor={theme.pageTextLight}- />+ <View style={{ flexShrink: 0 }}>+ <NotesButton+ id={category.id}+ style={dragging && { color: 'currentColor' }}+ defaultColor={theme.pageTextLight}+ />+ </View></View>);diff --git a/packages/desktop-client/src/components/budget/SidebarGroup.tsx b/packages/desktop-client/src/components/budget/SidebarGroup.tsxindex 0c9e3b4ec6..ca9125a3fe 100644--- a/packages/desktop-client/src/components/budget/SidebarGroup.tsx+++ b/packages/desktop-client/src/components/budget/SidebarGroup.tsx@@ -138,11 +138,13 @@ export function SidebarGroup({</Popover></View><View style={{ flex: 1 }} />- <NotesButton- id={group.id}- style={dragPreview && { color: 'currentColor' }}- defaultColor={theme.pageTextLight}- />+ <View style={{ flexShrink: 0 }}>+ <NotesButton+ id={group.id}+ style={dragPreview && { color: 'currentColor' }}+ defaultColor={theme.pageTextLight}+ />+ </View></>)}</View>diff --git a/upcoming-release-notes/2773.md b/upcoming-release-notes/2773.mdnew file mode 100644index 0000000000..a6d90a985a--- /dev/null+++ b/upcoming-release-notes/2773.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [jpelgrom]+---++Fix notes icon changing size/position with long category or group names.\ No newline at end of file