File tree Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ export class GlActiveWork extends SignalWatcher(LitElement) {
90
90
gl-breadcrumbs {
91
91
--gl-tooltip-text-transform: none;
92
92
}
93
+
93
94
.heading-branch-breadcrumb {
94
95
text-transform: none;
95
96
}
@@ -103,6 +104,9 @@ export class GlActiveWork extends SignalWatcher(LitElement) {
103
104
@consume ( { context : activeOverviewStateContext } )
104
105
private _activeOverviewState ! : ActiveOverviewState ;
105
106
107
+ @state ( )
108
+ private repoCollapsed = true ;
109
+
106
110
get isPro ( ) {
107
111
return isSubscriptionTrialOrPaidFromState ( this . _homeState . subscription . state ) ;
108
112
}
@@ -156,13 +160,13 @@ export class GlActiveWork extends SignalWatcher(LitElement) {
156
160
return html `
157
161
< gl-section ?loading =${ isFetching } >
158
162
< gl-breadcrumbs slot ="heading ">
159
- < gl-breadcrumb-item collapsibleState ="collapsed " icon =" repo "
163
+ < gl-breadcrumb-item collapsibleState ="none " class =" heading- repo-breadcrumb "
160
164
> < gl-repo-button-group
161
165
.repository =${ repo }
162
- .icon =${ false }
163
166
?disabled =${ ! hasMultipleRepositories }
164
167
?hasMultipleRepositories=${ hasMultipleRepositories }
165
168
.source=${ { source : 'graph' } as const }
169
+ ?expandable=${ true }
166
170
@gl-click=${ this . onRepositorySelectorClicked }
167
171
> < span slot ="tooltip ">
168
172
Switch to Another Repository...
Original file line number Diff line number Diff line change @@ -38,19 +38,32 @@ export class GlRepoButtonGroup extends GlElement {
38
38
refButtonBaseStyles ,
39
39
truncatedButtonStyles ,
40
40
css `
41
- :host([icons='1']) {
41
+ :host([icons='1']:not([expandable]) ) {
42
42
min-width: 7rem;
43
43
}
44
44
45
- :host([icons='2']) {
45
+ :host([icons='2']:not([expandable]) ) {
46
46
min-width: 9.4rem;
47
47
}
48
48
49
+ :host([icons='2'][expandable]) {
50
+ min-width: 5.6rem;
51
+ }
52
+
49
53
.indicator-dot {
50
54
--gl-indicator-color: green;
51
55
--gl-indicator-size: 0.4rem;
52
56
margin-left: -0.2rem;
53
57
}
58
+
59
+ /* :host([expandable]) .truncated-button {
60
+ transition: max-width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
61
+ } */
62
+
63
+ :host([expandable]:not(:hover, :focus-within)) .truncated-button {
64
+ min-width: 0;
65
+ max-width: 0;
66
+ }
54
67
` ,
55
68
pickerIconStyles ,
56
69
] ;
@@ -73,6 +86,9 @@ export class GlRepoButtonGroup extends GlElement {
73
86
@property ( { type : Object } )
74
87
source ?: Source ;
75
88
89
+ @property ( { type : Boolean , reflect : true } )
90
+ expandable = false ;
91
+
76
92
@property ( { type : Number , reflect : true } )
77
93
get icons ( ) {
78
94
if ( this . repository ?. provider === undefined ) return undefined ;
@@ -138,7 +154,7 @@ export class GlRepoButtonGroup extends GlElement {
138
154
const { provider } = repo ;
139
155
const connectedIntegration = provider . integration ?. connected ;
140
156
141
- return html `< gl-popover placement ="bottom ">
157
+ return html `< gl-popover placement ="bottom " trigger =" hover click focus " >
142
158
< gl-button
143
159
slot ="anchor "
144
160
part ="provider-icon "
You can’t perform that action at this time.
0 commit comments