Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
polish: add border for title bar for win
  • Loading branch information
antonreshetov committed Apr 10, 2022
commit cb86de58773c78b1dd9bbdaef35b365b98e61089
10 changes: 8 additions & 2 deletions src/renderer/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<template>
<div class="app-title-bar" />
<div
class="app-title-bar"
:class="{ 'is-win': appStore.platform === 'win32' }"
/>
<RouterView />
<div
v-if="isUpdateAvailable"
Expand All @@ -13,7 +16,7 @@
<script setup lang="ts">
import router from '@/router'
import { ref, watch } from 'vue'
import { ipc } from './electron'
import { ipc, platform } from './electron'
import { useAppStore } from './store/app'
import { repository } from '../../package.json'

Expand Down Expand Up @@ -63,6 +66,9 @@ body {
-webkit-app-region: drag;
z-index: 1010;
transition: all 0.5s;
&.is-win {
border-top: 1px solid var(--color-border);
}
}
}
.update {
Expand Down