Skip to content

Commit

Permalink
fix(EmptyTableBody): 文字列が中央揃えになるよう修正 (#5186)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qs-F authored Dec 13, 2024
1 parent 1f8f081 commit d10d1be
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/smarthr-ui/src/components/Table/EmptyTableBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import React, { ComponentPropsWithRef, PropsWithChildren, useMemo } from 'react'
import { tv } from 'tailwind-variants'

import { Center } from '../Layout'

import { Td } from './Td'
import { useTableHeadCellCount } from './useTableHeadCellCount'

Expand All @@ -19,7 +17,7 @@ type Props = PropsWithChildren<{
type ElementProps = Omit<ComponentPropsWithRef<'tbody'>, keyof Props>

const emptyTableBodyCell = tv({
base: '',
base: 'shr-text-center',
variants: {
paddingBlock: {
0: 'shr-py-0',
Expand Down Expand Up @@ -93,7 +91,7 @@ export const EmptyTableBody: React.FC<Props & ElementProps> = ({ children, paddi
<tbody {...props} ref={countHeadCellRef}>
<tr>
<Td colSpan={count} className={tdStyles}>
<Center>{children}</Center>
{children}
</Td>
</tr>
</tbody>
Expand Down

0 comments on commit d10d1be

Please sign in to comment.