From b786949aac3a6fc5b1a5545e387d00e57e448724 Mon Sep 17 00:00:00 2001 From: Domino987 Date: Wed, 13 Sep 2023 19:08:11 +0200 Subject: [PATCH] fix: adjust padding for selection grouping --- .github/workflows/publish-next.yml | 8 ++++---- .github/workflows/publish.yml | 7 +++---- src/components/MTableBodyRow/index.js | 10 +--------- 3 files changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish-next.yml b/.github/workflows/publish-next.yml index 28bcdc82..8e94a515 100644 --- a/.github/workflows/publish-next.yml +++ b/.github/workflows/publish-next.yml @@ -45,12 +45,12 @@ jobs: echo $RV - name: Create Release id: create_release - uses: actions/create-release@v1 + uses: ncipollo/release-action@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: ${{ env.RELEASE_VERSION }} - release_name: ${{ env.RELEASE_VERSION }} + name: ${{ env.RELEASE_VERSION }} body: ${{ github.event.head_commit.message }} draft: false - prerelease: true + prerelease: false + generateReleaseNotes: true diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 298b66e2..50c87b0d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -47,13 +47,12 @@ jobs: echo $RV - name: Create Release id: create_release - uses: actions/create-release@v1 + uses: ncipollo/release-action@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token with: - tag_name: ${{ env.RELEASE_VERSION }} - release_name: ${{ env.RELEASE_VERSION }} + name: ${{ env.RELEASE_VERSION }} body: ${{ github.event.head_commit.message }} draft: false prerelease: false - generate_release_notes: true + generateReleaseNotes: true diff --git a/src/components/MTableBodyRow/index.js b/src/components/MTableBodyRow/index.js index 73cf9a10..f146c285 100644 --- a/src/components/MTableBodyRow/index.js +++ b/src/components/MTableBodyRow/index.js @@ -173,15 +173,7 @@ function MTableBodyRow({ forwardedRef, ...props }) { props.treeDataMaxLevel ) || 0; - const styles = - size === 'medium' - ? { - marginLeft: props.level * 9 || 0 - } - : { - padding: '4px', - marginLeft: 5 + props.level * 9 || 0 - }; + const styles = size !== 'medium' ? { padding: '4px' } : undefined; return (