File tree Expand file tree Collapse file tree 1 file changed +19
-21
lines changed
src/components/GithubReleases Expand file tree Collapse file tree 1 file changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -63,16 +63,15 @@ function getPlatformType(assetName: string): PlatformType {
63
63
---
64
64
65
65
<div class =" github-releases" >
66
- <h3 >Latest Stable Release</h3 >
67
66
{ latestRelease && (
68
67
<div class = " release-container" >
69
68
<div class = " release-header" >
70
- <a href = { latestRelease . html_url } target = " _blank " rel = " noopener noreferrer " class = " version-link " >
71
- < span class = " version " > { latestRelease .tag_name } </ span >
72
- <span class = " date " >
69
+ <div class = " release- version-info " >
70
+ Latest stable release: { latestRelease .tag_name . replace ( / ^ v / , " " ) } | View changelog →
71
+ <a href = { latestRelease . html_url } target = " _blank " rel = " noopener noreferrer " >
73
72
{ new Date (latestRelease .published_at ).toLocaleDateString ()}
74
- </span >
75
- </a >
73
+ </a >
74
+ </div >
76
75
</div >
77
76
{ latestRelease .assets && latestRelease .assets .length > 0 && (
78
77
<div class = " assets-container" >
@@ -123,22 +122,21 @@ function getPlatformType(assetName: string): PlatformType {
123
122
margin-bottom: 0.5rem;
124
123
}
125
124
126
- .version-link {
127
- display: flex;
128
- justify-content: space-between;
129
- align-items: center;
130
- text-decoration: none;
131
- color: var(--theme-text);
132
- }
133
-
134
- .version {
135
- font-weight: bold;
136
- color: var(--theme-primary);
137
- }
125
+ .release-version-info {
126
+ @include typography(pricebox-list);
127
+ margin-bottom: 20px;
128
+ line-height: 1.2;
129
+ font-size: 16px;
138
130
139
- .date {
140
- font-size: 0.9em;
141
- color: var(--theme-text-light);
131
+ a {
132
+ text-decoration: underline;
133
+ color: inherit;
134
+ white-space: nowrap;
135
+ transition: color 0.2s;
136
+ }
137
+ a:hover {
138
+ color: #0c8ce0;
139
+ }
142
140
}
143
141
144
142
.assets-container {
You can’t perform that action at this time.
0 commit comments