Fix notes icon changing size/position with long category or group names (#2773)

This commit is contained in:
Joris Pelgröm
2024-05-21 17:20:46 +02:00
committed by GitHub
parent bbc123c3b8
commit d79b8c6cb2
3 changed files with 20 additions and 10 deletions

View File

@@ -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>
);

View File

@@ -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>

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [jpelgrom]
---
Fix notes icon changing size/position with long category or group names.