fix: 更新日志与公告滚动条过于贴近窗口边缘

fix #13295
This commit is contained in:
uye
2025-07-19 09:52:40 +08:00
parent 6a4ade5093
commit c3f1068edf
2 changed files with 2 additions and 3 deletions

View File

@@ -59,6 +59,7 @@
<hc:ScrollViewer
x:Name="ScrollViewer"
Grid.Row="0"
Margin="10,5"
IsInertiaEnabled="True">
<hc:Interaction.Triggers>
<hc:EventTrigger EventName="ScrollChanged">
@@ -66,7 +67,6 @@
</hc:EventTrigger>
</hc:Interaction.Triggers>
<mdxam:MarkdownScrollViewer
Margin="10,0,10,0"
d:Markdown="#Test&#10;This is a test text.&#10;&#10;~~This is a test text~~&#10;&#10;*This is a test text*&#10;&#10;**This is a test text**"
ClickAction="SafetyOpenBrowser"
Markdown="{Binding SelectedAnnouncementSection.Content}"

View File

@@ -19,7 +19,7 @@
d:DataContext="{d:DesignInstance {x:Type ui:VersionUpdateViewModel}}"
Icon="../../newlogo.ico"
mc:Ignorable="d">
<hc:ScrollViewer IsInertiaEnabled="True">
<hc:ScrollViewer Margin="10,5" IsInertiaEnabled="True">
<Grid Background="{DynamicResource MdXamlBackground}">
<Grid.RowDefinitions>
<RowDefinition Height="50" />
@@ -49,7 +49,6 @@
<mdxam:MarkdownScrollViewer
Grid.Row="1"
Margin="10,10,10,0"
ClickAction="SafetyOpenBrowser"
Markdown="{Binding UpdateInfo}"
PreviewMouseWheel="{s:Action RouteMouseWheelToParent,