Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 29617dd

Browse files
Merge pull request #239 from microsoft/main
center button, update text (#238)
2 parents 0e28f08 + 27be2a5 commit 29617dd

File tree

2 files changed

+37
-16
lines changed

2 files changed

+37
-16
lines changed

src/GitHubExtension/Strings/en-US/Resources.resw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
<value>Waiting for browser...</value>
249249
</data>
250250
<data name="Widget_Template.SignInRequired" xml:space="preserve">
251-
<value>You must sign in to view this widget's content.</value>
251+
<value>Sign in to use this widget.</value>
252252
<comment>Shown in Widget when user is not logged in.</comment>
253253
</data>
254254
<data name="Widget_Template.Loading" xml:space="preserve">

src/GitHubExtension/Widgets/Templates/GitHubSignInTemplate.json

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,53 @@
55
"body": [
66
{
77
"type": "Container",
8+
"minHeight": "40px"
9+
},
10+
{
11+
"type": "Container",
12+
"spacing": "none",
813
"items": [
914
{
1015
"type": "TextBlock",
1116
"text": "${message}",
1217
"wrap": true,
13-
"horizontalAlignment": "Center",
18+
"horizontalAlignment": "center",
1419
"height": "stretch",
15-
"size": "Default",
16-
"weight": "Bolder"
20+
"size": "medium",
21+
"weight": "bolder"
1722
},
1823
{
19-
"type": "ActionSet",
20-
"actions": [
24+
"type": "ColumnSet",
25+
"spacing": "ExtraLarge",
26+
"columns": [
2127
{
22-
"type": "Action.Execute",
23-
"title": "%Widget_Template_Button/SignIn%",
24-
"verb": "SignIn",
25-
"tooltip": "%Widget_Template_Tooltip/SignIn%"
28+
"type": "Column",
29+
"width": "stretch"
30+
},
31+
{
32+
"type": "Column",
33+
"width": "auto",
34+
"items": [
35+
{
36+
"type": "ActionSet",
37+
"actions": [
38+
{
39+
"type": "Action.Execute",
40+
"title": "%Widget_Template_Button/SignIn%",
41+
"verb": "SignIn",
42+
"tooltip": "%Widget_Template_Tooltip/SignIn%"
43+
}
44+
]
45+
}
46+
]
47+
},
48+
{
49+
"type": "Column",
50+
"width": "stretch"
2651
}
27-
],
28-
"horizontalAlignment": "center",
29-
"spacing": "ExtraLarge"
52+
]
3053
}
31-
],
32-
"horizontalAlignment": "center",
33-
"spacing": "None"
54+
]
3455
}
3556
]
3657
}

0 commit comments

Comments
 (0)