Make the telnet traffic a compact terminal view
Lines were as tall as a list item, with padding of more than the text. A line is now as tall as its text, the view always follows the newest line instead of pausing under the pointer, and a burst of lines is scrolled once. The scrollback is a thousand lines. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,16 +9,20 @@
|
||||
<Setter Property="Opacity" Value="0.7" />
|
||||
<Setter Property="Margin" Value="0,6,0,1" />
|
||||
</Style>
|
||||
<!-- the traffic is a terminal: a line is as tall as its text -->
|
||||
<Style Selector="ListBox#Traffic > ListBoxItem">
|
||||
<Setter Property="Padding" Value="2,0" />
|
||||
<Setter Property="MinHeight" Value="0" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
</Style>
|
||||
</Window.Styles>
|
||||
|
||||
<TabControl Name="Tabs">
|
||||
<TabItem Header="Telnet">
|
||||
<DockPanel>
|
||||
<Grid DockPanel.Dock="Top" ColumnDefinitions="*,Auto,Auto" Margin="8,6,8,4">
|
||||
<Grid DockPanel.Dock="Top" ColumnDefinitions="*,Auto" Margin="8,6,8,4">
|
||||
<TextBlock Name="StateText" FontSize="11" Opacity="0.7" VerticalAlignment="Center" />
|
||||
<TextBlock Grid.Column="1" Name="PausedText" Text="scrolling paused" FontSize="11"
|
||||
Margin="0,0,8,0" IsVisible="False" VerticalAlignment="Center" />
|
||||
<Button Grid.Column="2" Name="ReconnectButton" Content="Reconnect" Click="OnReconnect" />
|
||||
<Button Grid.Column="1" Name="ReconnectButton" Content="Reconnect" Click="OnReconnect" />
|
||||
</Grid>
|
||||
<StackPanel DockPanel.Dock="Bottom" Margin="8,4,8,8" Spacing="4">
|
||||
<WrapPanel Name="ButtonRow" />
|
||||
@@ -29,8 +33,7 @@
|
||||
</DockPanel>
|
||||
</StackPanel>
|
||||
<ListBox Name="Traffic" FontFamily="monospace" FontSize="12" Margin="8,0"
|
||||
DoubleTapped="OnJumpToSpot"
|
||||
PointerEntered="OnTrafficEntered" PointerExited="OnTrafficExited">
|
||||
DoubleTapped="OnJumpToSpot">
|
||||
<ListBox.ContextMenu>
|
||||
<ContextMenu>
|
||||
<MenuItem Header="Jump to this spot" Click="OnJumpToSpot" />
|
||||
|
||||
Reference in New Issue
Block a user