fix: windows style

This commit is contained in:
kangfenmao 2024-08-08 23:30:55 +08:00
parent 64ee3f2108
commit e028d0600f
3 changed files with 3 additions and 5 deletions

View File

@ -52,8 +52,6 @@ jobs:
if: matrix.os == 'windows-latest'
run: yarn build:win
env:
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Replace spaces in filenames

View File

@ -91,7 +91,7 @@
}
code {
white-space: pre-wrap;
white-space: pre-wrap !important;
font-family: 'Courier New', Courier, monospace;
}
@ -102,7 +102,7 @@
}
pre {
white-space: pre-wrap;
white-space: pre-wrap !important;
padding: 1em;
border-radius: 5px;
overflow-x: auto;

View File

@ -5,5 +5,5 @@ export const FONT_FAMILY =
"Ubuntu, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif"
export const platform = window.electron?.process?.platform
export const isMac = platform === 'darwin'
export const isWindows = platform === 'windows'
export const isWindows = platform === 'win32' || platform === 'win64'
export const isLinux = platform === 'linux'