Skip to content

The swiss army knife of lossless video/audio editing

improve whatsnew

Mikael Finstad2511147e25db
diff --git a/src/renderer/src/components/WhatsNew.module.css b/src/renderer/src/components/WhatsNew.module.css
new file mode 100644
index 00000000..8e23cf63
--- /dev/null
+++ b/src/renderer/src/components/WhatsNew.module.css
@@ -0,0 +1,15 @@
+.version {
+ ul {
+ margin: .3em 0;
+ }
+ li {
+ line-height: 1.2;
+ }
+ h2 {
+ font-size: 1.1em;
+ margin-top: 0;
+ margin-bottom: .1em;
+ }
+
+ margin-bottom: 1.5em;
+}
\ No newline at end of file
diff --git a/src/renderer/src/components/WhatsNew.tsx b/src/renderer/src/components/WhatsNew.tsx
index ee6173fb..635b64ee 100644
--- a/src/renderer/src/components/WhatsNew.tsx
+++ b/src/renderer/src/components/WhatsNew.tsx
@@ -10,6 +10,8 @@ import { appVersion, isMasBuild } from '../util';
import versionsJson from '../versions.json';
import Button from './Button';
+import styles from './WhatsNew.module.css';
+
// see also generateVersions.mts
const versions: { version: string, highlightsMd?: string | undefined }[] = versionsJson;
@@ -48,8 +50,14 @@ export default function WhatsNew() {
const prevVersion = matchingVersions[i + 1]?.version ?? initialLastAppVersion;
return (
- <div key={version}>
- {!(isMasBuild && matchingVersions.length === 1) && <h2>v{version}</h2>}
+ <div key={version} className={styles['version']}>
+ <div style={{ display: 'flex', flexWrap: 'wrap', gap: '1em' }}>
+ {!(isMasBuild && matchingVersions.length === 1) && <h2>v{version}</h2>}
+ <Button onClick={() => shell.openExternal(`https://github.com/mifi/lossless-cut/releases/tag/v${version}`)}><FaFile style={{ verticalAlign: 'middle' }} /> {t('All release notes')}</Button>
+ <Button onClick={() => shell.openExternal(`https://github.com/mifi/lossless-cut/compare/v${prevVersion}...v${version}`)}><FaCode style={{ verticalAlign: 'middle' }} /> {t('All code changes')}</Button>
+ </div>
+
+
{highlightsMd != null && (
<Markdown
components={{
@@ -63,9 +71,6 @@ export default function WhatsNew() {
{highlightsMd}
</Markdown>
)}
-
- <Button style={{ padding: '.5em 1em' }} onClick={() => shell.openExternal(`https://github.com/mifi/lossless-cut/releases/tag/v${version}`)}><FaFile style={{ verticalAlign: 'middle' }} /> {t('All release notes')}</Button>
- <Button style={{ padding: '.5em 1em' }} onClick={() => shell.openExternal(`https://github.com/mifi/lossless-cut/compare/v${prevVersion}...v${version}`)}><FaCode style={{ verticalAlign: 'middle' }} /> {t('All code changes')}</Button>
</div>
);
})}