Browse Source

Merge pull request #9773 from GeminiLn/fix-issue-6467

Fix issue 6467: IP cannot be copied in SSH tab
Eugene 1 year ago
parent
commit
ff49b50d7d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      tabby-ssh/src/components/sshTab.component.pug

+ 4 - 1
tabby-ssh/src/components/sshTab.component.pug

@@ -1,7 +1,10 @@
 terminal-toolbar([tab]='this')
     i.fas.fa-xs.fa-circle.text-success.me-2(*ngIf='session && session.open')
     i.fas.fa-xs.fa-circle.text-danger.me-2(*ngIf='!session || !session.open')
-    strong.me-auto {{profile.options.user}}@{{profile.options.host}}:{{profile.options.port}}
+    strong.me-auto(
+        style='user-select: text; cursor: text;'
+        onclick='event.stopPropagation()'
+    ) {{profile.options.user}}@{{profile.options.host}}:{{profile.options.port}}
 
     .me-2(
         ngbDropdown,