diff --git a/src/renderer/src/views/SettingsView.vue b/src/renderer/src/views/SettingsView.vue index f63197f..81274ff 100644 --- a/src/renderer/src/views/SettingsView.vue +++ b/src/renderer/src/views/SettingsView.vue @@ -16,6 +16,8 @@ const settingsStore = useSettingsStore() const editingAccount = ref(null) const updaterStore = useUpdaterStore() +const changelogOpen = ref(false) +const appVersion = __APP_VERSION__ const swipeOptions: { value: SwipeAction; label: string }[] = ( ['delete', 'toggleRead', 'toggleFlag', 'none'] as SwipeAction[] @@ -197,7 +199,7 @@ function folderDisplayName(path: string): string {
Версия
- v{{ __APP_VERSION__ }} + v{{ appVersion }} ✓ актуальная @@ -229,6 +231,22 @@ function folderDisplayName(path: string): string {
+ +
+ +
+ + +
+
{{ updaterStore.notes }}
+
+
+
+
+
@@ -814,4 +832,82 @@ function folderDisplayName(path: string): string { opacity: 0.45; cursor: not-allowed; } + +/* ── Changelog ───────────────────────────────────────────────────────────── */ + +.changelog-row { + flex-direction: column; + align-items: stretch; + gap: 0; + padding: 0; +} + +.changelog-wrap { + flex-direction: column; + align-items: stretch; + width: 100%; + gap: 0; +} + +.changelog-toggle { + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; + padding: 9px 14px; + padding-left: calc(62px + 14px); + font-size: 11px; + font-weight: 500; + color: var(--text-muted); + background: transparent; + border: none; + cursor: pointer; + transition: color var(--transition-fast); + text-align: left; +} + +.changelog-toggle:hover { + color: var(--text-secondary); +} + +.changelog-arrow { + font-size: 14px; + line-height: 1; + transition: transform 0.2s ease; + display: inline-block; +} + +.changelog-arrow.open { + transform: rotate(90deg); +} + +.changelog-body { + padding: 0 14px 10px calc(62px + 14px); + overflow: hidden; +} + +.changelog-text { + font-size: 11px; + font-family: var(--font-mono); + color: var(--text-muted); + white-space: pre-wrap; + word-break: break-word; + line-height: 1.6; + margin: 0; + max-height: 200px; + overflow-y: auto; + scrollbar-width: thin; + scrollbar-color: rgba(255,255,255,0.12) transparent; +} + +.changelog-enter-active, +.changelog-leave-active { + transition: opacity 0.2s ease, transform 0.2s ease; +} + +.changelog-enter-from, +.changelog-leave-to { + opacity: 0; + transform: translateY(-4px); +}