Fix tab and hyperlink tooltips to wrap long text (#9913)
## PR Checklist * [x] Closes https://github.com/microsoft/terminal/issues/9869 * [x] CLA signed. * [ ] Tests added/passed * [ ] Documentation updated. * [ ] Schema updated. * [ ] I've discussed this with core contributors already.
This commit is contained in:
parent
ad625a041d
commit
6b4f70e985
|
@ -208,6 +208,7 @@ namespace winrt::TerminalApp::implementation
|
|||
titleRun.Text(_CreateToolTipTitle());
|
||||
|
||||
auto textBlock = WUX::Controls::TextBlock{};
|
||||
textBlock.TextWrapping(WUX::TextWrapping::Wrap);
|
||||
textBlock.TextAlignment(WUX::TextAlignment::Center);
|
||||
textBlock.Inlines().Append(titleRun);
|
||||
|
||||
|
|
|
@ -60,7 +60,8 @@
|
|||
<ToolTipService.ToolTip>
|
||||
<ToolTip x:Name="LinkTip"
|
||||
Placement="Mouse">
|
||||
<TextBlock IsTextSelectionEnabled="True">
|
||||
<TextBlock IsTextSelectionEnabled="True"
|
||||
TextWrapping="Wrap">
|
||||
<Run x:Name="HoveredUri" /> <LineBreak />
|
||||
<Run x:Uid="HowToOpenRun"
|
||||
FontStyle="Italic" />
|
||||
|
|
Loading…
Reference in a new issue