Skip to content

Commit

Permalink
Fix tab and hyperlink tooltips to wrap long text (#9913)
Browse files Browse the repository at this point in the history
* [x] Closes #9869
* [x] CLA signed.
* [ ] Tests added/passed
* [ ] Documentation updated.
* [ ] Schema updated.
* [ ] I've discussed this with core contributors already.

(cherry picked from commit 6b4f70e)
  • Loading branch information
Don-Vito authored and DHowett committed May 14, 2021
1 parent c38696d commit e3ecc4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cascadia/TerminalApp/TabBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,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);

Expand Down
3 changes: 2 additions & 1 deletion src/cascadia/TerminalControl/TermControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ the MIT License. See LICENSE in the project root for license information. -->
<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">
Expand Down

0 comments on commit e3ecc4d

Please sign in to comment.