Skip to content

Commit

Permalink
fix: tweak (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanddd committed Jan 22, 2024
1 parent 01660ab commit 2795c29
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions apps/mochi-web/components/Feed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function Feed({ className = '' }: Props) {
/>
<div
style={{ maxWidth: 1500 }}
className="flex justify-between items-center px-4 pt-6 pb-4 mx-auto w-screen sm:px-8"
className="flex justify-between items-center px-4 pt-6 pb-4 mx-auto w-screen sm:px-6"
>
<Typography>Recent Transactions</Typography>
<Button asChild className="!pr-0" variant="link" color="primary">
Expand All @@ -118,7 +118,7 @@ export default function Feed({ className = '' }: Props) {
/* }} */
className="overflow-hidden h-screen max-h-full"
>
<div className="px-6 mx-auto" style={{ width: 1488 }}>
<div className="px-6 mx-auto">
<TransactionTable
enableColFilter={false}
enableColSort={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const TransactionTable = (props: TransactionTableProps) => {
{
header: () => <TransactionHeaderWen disabled={!enableColSort} />,
id: 'wen',
width: '9%',
width: '10%',
// eslint-disable-next-line
cell: (props) => {
const tx = props.row.original
Expand Down Expand Up @@ -146,7 +146,7 @@ export const TransactionTable = (props: TransactionTableProps) => {
{
header: () => <TransactionHeaderTotalValue disabled={!enableColSort} />,
id: 'amount',
width: '10%',
width: '20%',
// eslint-disable-next-line
cell: (props) => {
const tx = props.row.original
Expand Down Expand Up @@ -230,7 +230,7 @@ export const TransactionTable = (props: TransactionTableProps) => {
<>
<ScrollArea>
<ScrollAreaViewport ref={scrollRef}>
<div style={{ minWidth: 1400 }} className={className}>
<div className={clsx('w-max mx-auto', className)}>
<Table
{...rest}
size="sm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const TransactionTime = ({ date, raw: _raw }: Props) => {
/* ) */
/* } */
return (
<Typography level="p5" className="tabular-nums text-left">
<Typography level="p5" className="w-max tabular-nums text-left">
{date}
</Typography>
)
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/src/components/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const tableHeaderClsx = ({
size,
}: { className?: string; stickyHeader?: boolean; size?: 'sm' | 'md' } = {}) =>
clsx(
'py-3 text-xxs font-semibold tracking-tight uppercase min-w-[48px] text-text-secondary',
'whitespace-nowrap py-3 text-xxs font-semibold tracking-tight uppercase min-w-[48px] text-text-secondary',
stickyHeader
? 'sticky top-0 bg-background-surface after:absolute after:inset-0 after:h-full after:w-full after:border-b after:border-neutral-outline-active'
: 'border-b border-neutral-outline-active',
Expand Down

0 comments on commit 2795c29

Please sign in to comment.