@@ -16,11 +16,11 @@ import { pluralize } from '../../../../../system/string';
16
16
import type { State } from '../../../../home/protocol' ;
17
17
import { stateContext } from '../../../home/context' ;
18
18
import { elementBase , linkBase } from '../../../shared/components/styles/lit/base.css' ;
19
+ import '../../../shared/components/accordion/accordion' ;
19
20
import '../../../shared/components/button' ;
20
21
import '../../../shared/components/button-container' ;
21
22
import '../../../shared/components/code-icon' ;
22
23
import '../../../shared/components/promo' ;
23
- import '../../../shared/components/accordion/accordion' ;
24
24
25
25
@customElement ( 'gl-home-account-content' )
26
26
export class GLHomeAccountContent extends LitElement {
@@ -142,6 +142,7 @@ export class GLHomeAccountContent extends LitElement {
142
142
color: var(--color-foreground--65);
143
143
background-color: var(--vscode-toolbar-hoverBackground);
144
144
border-radius: 50%;
145
+ margin-right: 0.6rem;
145
146
}
146
147
147
148
.account > :first-child {
@@ -150,6 +151,11 @@ export class GLHomeAccountContent extends LitElement {
150
151
.account > :last-child {
151
152
margin-block-end: 0;
152
153
}
154
+
155
+ hr {
156
+ border: none;
157
+ border-top: 1px solid var(--color-foreground--25);
158
+ }
153
159
` ,
154
160
] ;
155
161
@@ -242,14 +248,21 @@ export class GLHomeAccountContent extends LitElement {
242
248
this . _state . organizationsCount ! > 1 ,
243
249
( ) =>
244
250
html `< div class ="org__signout ">
245
- < span class ="org__badge "> +${ this . _state . organizationsCount ! - 1 } </ span >
246
251
< gl-button
247
252
appearance ="toolbar "
248
253
href ="command:gitlens.gk.switchOrganization "
249
- tooltip ="Switch Organization "
250
- aria-label =" Switch Organization "
254
+ aria-label ="Switch Active Organization "
255
+ > < span class =" org__badge " > + ${ this . _state . organizationsCount ! - 1 } </ span
251
256
> < code-icon icon ="arrow-swap "> </ code-icon
252
- > </ gl-button >
257
+ > < span slot ="tooltip "
258
+ > Switch Active Organization
259
+ < hr />
260
+ You are in
261
+ ${ pluralize ( 'organization' , this . _state . organizationsCount ! - 1 , {
262
+ infix : ' other ' ,
263
+ } ) } </ span
264
+ > </ gl-button
265
+ >
253
266
</ div > ` ,
254
267
) }
255
268
</ div >
0 commit comments