Update MsgView.axaml.cs

This commit is contained in:
JieXu 2025-09-25 07:35:32 +08:00 committed by GitHub
parent 406dc3a297
commit 676edf8a00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,8 +12,8 @@ namespace v2rayN.Desktop.Views;
public partial class MsgView : ReactiveUserControl<MsgViewModel> public partial class MsgView : ReactiveUserControl<MsgViewModel>
{ {
private readonly ScrollViewer _scrollViewer; private readonly ScrollViewer _scrollViewer;
private const int _maxLines = 320; // 实际保留的行数 private const int _maxLines = 320;
private const int _trimLines = 350; // 超过此阈值时裁剪 private const int _trimLines = 350;
private int _lastShownLength = 0; private int _lastShownLength = 0;
public MsgView() public MsgView()