Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

chore(windows): centre the link and password in the share dialog's copy boxes

wquguru3affb72a50ff
diff --git a/windows/src/Cicada/ShareDialog.cs b/windows/src/Cicada/ShareDialog.cs
index d7491c4..237283d 100644
--- a/windows/src/Cicada/ShareDialog.cs
+++ b/windows/src/Cicada/ShareDialog.cs
@@ -287,6 +287,7 @@ sealed class ShareDialog : Window
{
Text = text, IsReadOnly = true, BorderThickness = new Thickness(0), Background = Brushes.Transparent, FontSize = 12,
FontFamily = new FontFamily("Cascadia Mono, Consolas"), Foreground = Palette.Ink, VerticalAlignment = VerticalAlignment.Center,
+ Padding = new Thickness(0), MinHeight = 0, VerticalContentAlignment = VerticalAlignment.Center,
};
var box = new Border { Background = Palette.Subtle, CornerRadius = new CornerRadius(6), Padding = new Thickness(6, 0, 8, 0), Child = value, Height = 32, VerticalAlignment = VerticalAlignment.Center };
var b = Ui.Button(copied == what ? L("已复制") : label, () => { Copy(text, what); Render(); }, height: 32);