diff --git a/src/DodoSSH.Client.App/Views/SessionSidebar.axaml b/src/DodoSSH.Client.App/Views/SessionSidebar.axaml index 144ea56..54b7d73 100644 --- a/src/DodoSSH.Client.App/Views/SessionSidebar.axaml +++ b/src/DodoSSH.Client.App/Views/SessionSidebar.axaml @@ -70,12 +70,25 @@ The address, and the button that closes the column. Both on one row, and the address is the trimming one: a long account@host:port is exactly the string that would otherwise push the close button off the edge of a panel whose whole point is that it can be got rid of. + + SelectableTextBlock rather than TextBlock, which is what the rest of this application already + reaches for whenever a string is on screen to be taken somewhere else — a fingerprint, a public + key, a recovery code. This is the one place the shell prints the endpoint it actually dialled, + and the endpoint is a thing people paste: into another client, into a ticket, into the ssh + command they are writing beside this window. Retyping it off the screen is how a digit gets + dropped from an address that is mostly digits. + + The trimming and the selection do disagree at the long end, and the ToolTip is why the + disagreement is tolerable rather than a trap: a drag reaches only the glyphs that were drawn, + so an address wearing an ellipsis has to be taken with select-all — Ctrl+A, then Ctrl+C — and + the hover already shows what the full string is, so nobody is copying half of one without + having been told there is a half. --> - +