Skip to content

Commit 779aa54

Browse files
committed
✨ Changelog improvements
1 parent b166f91 commit 779aa54

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

src/components/changelogDialog.svelte

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts">
22
import changelog from '../pluginPackage/changelog.json'
3+
import AnimatedJavaIcon from '../assets/animated_java_icon.svg'
34
45
function formatDateFull(date: string) {
56
// @ts-expect-error
@@ -40,10 +41,13 @@
4041
</script>
4142

4243
<div class="content plugin_browser_tabbed_page" id="plugin_browser_changelog">
43-
{#each Object.values(changelog) as versions}
44-
<h3>
45-
{versions.title}
46-
</h3>
44+
{#each Object.values(changelog).reverse() as versions}
45+
<div class="title-container">
46+
<img src={AnimatedJavaIcon} alt="" />
47+
<h3>
48+
{versions.title}
49+
</h3>
50+
</div>
4751
<!-- svelte-ignore a11y-label-has-associated-control -->
4852
<label class="plugin_changelog_author">{versions.author}</label>
4953
<!-- svelte-ignore a11y-label-has-associated-control -->
@@ -83,4 +87,22 @@
8387
border-radius: 3px;
8488
font-size: 0.8em;
8589
}
90+
img {
91+
border-radius: 4px;
92+
width: 24px;
93+
height: 24px;
94+
margin-left: 0.5px;
95+
box-shadow: 1px 1px 1px #000000aa;
96+
}
97+
.title-container h3 {
98+
margin-left: 8px;
99+
margin-top: 0;
100+
}
101+
.title-container {
102+
display: flex;
103+
flex-direction: row;
104+
justify-content: flex-start;
105+
align-items: center;
106+
margin-top: 8px;
107+
}
86108
</style>

src/lang/en.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ animated_java.dialog.about.title: About Animated Java
3333
animated_java.dialog.about.close_button: Close
3434

3535
## Changelog
36-
animated_java.dialog.changelog_dialog.title: Changelog
36+
animated_java.dialog.changelog_dialog.title: Animated Java Changelog
3737

3838
## Unexpected Error Dialog
3939
animated_java.dialog.unexpected_error.title: An Unexpected Error Occurred!

0 commit comments

Comments
 (0)