Skip to content

Commit

Permalink
Merge pull request #123 from pacholoamit/minor/chart-resize
Browse files Browse the repository at this point in the history
feat(charts): change chart height
  • Loading branch information
pacholoamit authored May 15, 2024
2 parents ad5ff2e + 6cc2ece commit 865b3c3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 47 deletions.
45 changes: 2 additions & 43 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,7 @@ env:
VITE_API_URL: ${{ secrets.VITE_API_URL }}

jobs:
# test-tauri:
# environment: release
# strategy:
# fail-fast: false
# matrix:
# platform: [macos-latest, ubuntu-20.04, windows-latest]

# runs-on: ${{ matrix.platform }}
# steps:
# - uses: actions/checkout@v3

# - name: setup node
# uses: actions/setup-node@v1
# with:
# node-version: 18

# - name: install Rust stable
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# - name: install dependencies (ubuntu only)
# if: matrix.platform == 'ubuntu-20.04'
# run: |
# sudo apt-get update
# sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf

# - name: install app dependencies
# uses: ./.github/actions/yarn-nm-install
# with:
# enable-corepack: false
# cache-install-state: true
# cache-node-modules: true
# - name: Build tauri
# run: yarn build
# - uses: tauri-apps/tauri-action@v0
# env:
# TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
# TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

create-release:
# needs: test-tauri
runs-on: ubuntu-20.04
environment: release
outputs:
Expand All @@ -59,7 +18,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 18
node-version: 20
- name: get version
run: echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
- name: create release
Expand Down Expand Up @@ -93,7 +52,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v1
with:
node-version: 18
node-version: 20
- name: install Rust stable
uses: actions-rs/toolchain@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/).

## 0.8.0-rc
- Change Chart height

## 0.7.0
- Improve Settings page UI
- Add Theme support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const GlobalCpuAreaChart: React.FC = ({}) => {
}, [globalCpu]);

return (
<Card style={{ height: "450px" }}>
<Card style={{ height: "420px" }}>
<AreaChart options={chartOptions} />
</Card>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const MemoryAreaChart: React.FC = ({}) => {
}, [memory]);

return (
<Card style={{ height: "450px" }}>
<Card style={{ height: "420px" }}>
<AreaChart options={chartOptions} />
</Card>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const NetworksAreaChart: React.FC = ({}) => {
}, [JSON.stringify(networks)]);

return (
<Card style={{ height: "450px" }}>
<Card style={{ height: "420px" }}>
<AreaChart options={chartOptions} />
</Card>
);
Expand Down
2 changes: 1 addition & 1 deletion src/features/metrics/components/swap/swap.area-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const SwapAreaChart: React.FC = ({}) => {
}, [swap]);

return (
<Card style={{ height: "450px" }}>
<Card style={{ height: "420px" }}>
<AreaChart options={chartOptions} />
</Card>
);
Expand Down

0 comments on commit 865b3c3

Please sign in to comment.