From e028d0600f1c8cced4b2e43e60bd05fd880c4e38 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Thu, 8 Aug 2024 23:30:55 +0800 Subject: [PATCH] fix: windows style --- .github/workflows/release.yml | 2 -- src/renderer/src/assets/styles/markdown.scss | 4 ++-- src/renderer/src/config/constant.ts | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 61ebd845..238b8327 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/src/renderer/src/assets/styles/markdown.scss b/src/renderer/src/assets/styles/markdown.scss index c2877c52..24f40dad 100644 --- a/src/renderer/src/assets/styles/markdown.scss +++ b/src/renderer/src/assets/styles/markdown.scss @@ -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; diff --git a/src/renderer/src/config/constant.ts b/src/renderer/src/config/constant.ts index 8b3b40be..6e7c4018 100644 --- a/src/renderer/src/config/constant.ts +++ b/src/renderer/src/config/constant.ts @@ -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'