ux: right margin of filter toggle button (#875)

This commit is contained in:
leo 2025-01-08 11:14:17 +08:00
parent df422b2219
commit eea3d5db6c
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -73,7 +73,7 @@
<!-- Filter Mode Switcher --> <!-- Filter Mode Switcher -->
<v:FilterModeSwitchButton Grid.Column="3" <v:FilterModeSwitchButton Grid.Column="3"
Margin="0,0,8,0" Margin="0,0,12,0"
Mode="{Binding FilterMode}"/> Mode="{Binding FilterMode}"/>
</Grid> </Grid>
</Grid> </Grid>

View file

@ -26,7 +26,7 @@
SelectionChanged="OnRowSelectionChanged"> SelectionChanged="OnRowSelectionChanged">
<ListBox.ItemTemplate> <ListBox.ItemTemplate>
<DataTemplate DataType="vm:TagTreeNode"> <DataTemplate DataType="vm:TagTreeNode">
<Grid ColumnDefinitions="16,Auto,*,20" <Grid ColumnDefinitions="16,Auto,*,Auto"
Margin="{Binding Depth, Converter={x:Static c:IntConverters.ToTreeMargin}}" Margin="{Binding Depth, Converter={x:Static c:IntConverters.ToTreeMargin}}"
Background="Transparent" Background="Transparent"
ContextRequested="OnRowContextRequested" ContextRequested="OnRowContextRequested"
@ -51,7 +51,7 @@
<ContentControl Grid.Column="3" Content="{Binding Tag}"> <ContentControl Grid.Column="3" Content="{Binding Tag}">
<ContentControl.DataTemplates> <ContentControl.DataTemplates>
<DataTemplate DataType="m:Tag"> <DataTemplate DataType="m:Tag">
<v:FilterModeSwitchButton Mode="{Binding FilterMode}"/> <v:FilterModeSwitchButton Margin="0,0,12,0" Mode="{Binding FilterMode}"/>
</DataTemplate> </DataTemplate>
</ContentControl.DataTemplates> </ContentControl.DataTemplates>
</ContentControl> </ContentControl>
@ -69,7 +69,7 @@
SelectionChanged="OnRowSelectionChanged"> SelectionChanged="OnRowSelectionChanged">
<ListBox.ItemTemplate> <ListBox.ItemTemplate>
<DataTemplate DataType="m:Tag"> <DataTemplate DataType="m:Tag">
<Grid ColumnDefinitions="Auto,*,20" <Grid ColumnDefinitions="Auto,*,Auto"
Background="Transparent" Background="Transparent"
ContextRequested="OnRowContextRequested" ContextRequested="OnRowContextRequested"
ToolTip.Tip="{Binding Message}"> ToolTip.Tip="{Binding Message}">
@ -84,7 +84,7 @@
Margin="8,0,0,0" Margin="8,0,0,0"
TextTrimming="CharacterEllipsis"/> TextTrimming="CharacterEllipsis"/>
<v:FilterModeSwitchButton Grid.Column="2" Mode="{Binding FilterMode}"/> <v:FilterModeSwitchButton Grid.Column="2" Margin="0,0,12,0" Mode="{Binding FilterMode}"/>
</Grid> </Grid>
</DataTemplate> </DataTemplate>
</ListBox.ItemTemplate> </ListBox.ItemTemplate>