Skip to content

Commit 4fae09e

Browse files
committed
fix: add scrollviewer around the connect error display to prevent overflow
1 parent fd99c1d commit 4fae09e

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

App/Views/Pages/TrayWindowMainPage.xaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,19 @@
6262

6363
<controls:HorizontalRule />
6464

65-
<TextBlock
66-
Text="{x:Bind ViewModel.VpnFailedMessage, Mode=OneWay}"
67-
Foreground="Red"
68-
Margin="0,6,0,6"
69-
TextWrapping="Wrap"
70-
Visibility="{x:Bind ViewModel.ShowFailedSection, Converter={StaticResource BoolToVisibilityConverter}, Mode=OneWay}" />
65+
<ScrollViewer
66+
VerticalScrollBarVisibility="Auto"
67+
MaxHeight="500"
68+
Visibility="{x:Bind ViewModel.ShowFailedSection, Converter={StaticResource BoolToVisibilityConverter}, Mode=OneWay}" >
69+
70+
<TextBlock
71+
Text="{x:Bind ViewModel.VpnFailedMessage, Mode=OneWay}"
72+
Foreground="Red"
73+
Margin="0,6,0,6"
74+
TextWrapping="Wrap" />
7175

76+
</ScrollViewer>
77+
7278
<TextBlock
7379
Text="Enable Coder Connect to view your workspaces."
7480
TextWrapping="Wrap"

0 commit comments

Comments
 (0)