Skip to content

Commit 46b7fc0

Browse files
committed
Hide the left/right buttons when there is no more left/right to go; improve button icons
1 parent 49c879f commit 46b7fc0

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

src/Widgets/Templates/Template_UpdatesList.cs

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,17 +108,25 @@ protected override string GenerateTemplateBody()
108108
"type": "ActionSet",
109109
"actions": [
110110
{
111-
"type": "Action.Execute",
112-
"title": "🠈",
111+
"title": "🠜",
113112
"card": {
114113
"type": "AdaptiveCard"
115114
},
115+
"type": "Action.Execute",
116116
"verb": "{{Verbs.GoSmaller}}",
117-
"isEnabled": {{(CanGoSmaller ? "true" : "false")}}
117+
"isEnabled": true
118118
}
119119
]
120120
}
121-
]
121+
],
122+
"isVisible": {{(CanGoSmaller ? "true" : "false")}}
123+
},
124+
{
125+
"type": "Column",
126+
"spacing": "None",
127+
"width": "38px",
128+
"items": [],
129+
"isVisible": {{(CanGoSmaller ? "false" : "true")}}
122130
},
123131
{
124132
"type": "Column",
@@ -147,17 +155,26 @@ protected override string GenerateTemplateBody()
147155
"type": "ActionSet",
148156
"actions": [
149157
{
150-
"type": "Action.Execute",
151-
"title": "🠊",
158+
"title": "🠞",
152159
"card": {
153160
"type": "AdaptiveCard"
154161
},
162+
"type": "Action.Execute",
155163
"verb": "{{Verbs.GoBigger}}",
156-
"isEnabled": {{(CanGoBigger ? "true" : "false")}}
164+
"isEnabled": true
157165
}
158166
]
159167
}
160-
]
168+
],
169+
"isVisible": {{(CanGoBigger ? "true" : "false")}}
170+
},
171+
{
172+
"type": "Column",
173+
"spacing": "None",
174+
"width": "38px",
175+
"items": [
176+
],
177+
"isVisible": {{(CanGoBigger ? "false" : "true")}}
161178
}
162179
],
163180
"spacing": "Small"
@@ -336,7 +353,7 @@ private string GeneratePackageStructure(int index)
336353
"actions": [
337354
{
338355
"type": "Action.Execute",
339-
"title": "🡇",
356+
"title": "🠟",
340357
"verb": "{{Verbs.UpdatePackage}}_{{_widget.PackageOffset + index}}",
341358
"data": {},
342359
"tooltip": "Update this package",

0 commit comments

Comments
 (0)