Skip to content

Commit

Permalink
chore: 减轻文章的字体 (#44)
Browse files Browse the repository at this point in the history
* chore: 减轻文章的字体

* fix: 工作流执行错误
  • Loading branch information
IceOfSummer authored Nov 11, 2024
1 parent a1882d4 commit 0ac1e8e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": ["next/core-web-vitals", "eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended"],
"plugins": ["@typescript-eslint"],
"ignorePatterns": ["**/*.cjs", "scripts/*.js", "**/*.mjs", "node_modules/**", ".next/**"],
"ignorePatterns": ["**/*.cjs", "scripts/*.js", "**/*.mjs", "node_modules/**", ".next/**", "out/**"],
"rules": {
"quotes": ["error", "single"],
"key-spacing": ["error", { "beforeColon": false }],
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ jobs:
id: test
run: npm run test && echo "success=1" >> $GITHUB_OUTPUT
outputs:
lint_success: ${{ job.ci.steps.lint.success }}
test_success: ${{ job.ci.steps.test.success }}
lint_success: ${{ steps.lint.outputs.success }}
test_success: ${{ steps.test.outputs.success }}

add_label_for_pr:
name: 'Add label for pull request'
needs: ci
if: ${{ always() && github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
Expand All @@ -54,15 +55,15 @@ jobs:
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
issue-number: ${{ github.event.pull_request.number }}
labels: 'ci:success,ci:test-fail,ci:lint-fail'
- name: Add label
uses: actions-cool/issues-helper@v3
with:
actions: 'add-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
issue-number: ${{ github.event.pull_request.number }}
labels: >
${{ needs.ci.outputs.lint_success != '0' && 'ci:lint-fail,' || '' }}
${{ needs.ci.outputs.test_success != '0' && 'ci:test-fail,' || '' }}
${{ needs.ci.outputs.test_success == '1' && needs.ci.outputs.lint_success == '1' && 'ci:success,' || '' }}
${{ needs.ci.outputs.lint_success != '1' && 'ci:lint-fail,' || '' }}
${{ needs.ci.outputs.test_success != '1' && 'ci:test-fail,' || '' }}
${{ (needs.ci.outputs.test_success == '1' && needs.ci.outputs.lint_success == '1') && 'ci:success,' || '' }}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
line-height: 2;
overflow: auto;
padding: 0 px2Rem(30px);
font-weight: 500;
}

.languageTag {
Expand Down
2 changes: 1 addition & 1 deletion src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
body {
background: var(--background-color);
color: var(--color-text);
font: 500 0.9375rem Lexend, "Noto Sans SC", sans-serif;
font: normal 1rem Lexend, "Noto Sans SC", sans-serif;
overflow-x: hidden;
width: 100%;
}
Expand Down

0 comments on commit 0ac1e8e

Please sign in to comment.