Skip to content

Commit cbd884d

Browse files
author
Viande
committed
repsonsive table
1 parent 9527406 commit cbd884d

File tree

5 files changed

+13
-98
lines changed

5 files changed

+13
-98
lines changed

src/components/dapp/Countdown.tsx

-85
This file was deleted.

src/components/primitives/Table.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export function Table<T extends Columns>({
220220
export function createTable<T extends Columns>(columns: T) {
221221
const TemplateTable = (props: Omit<TableProps<T>, "columns"> & ListProps) =>
222222
props.responsive ? (
223-
<div className="w-full overflow-x-visible lg:mx-0">
223+
<div className="w-full lg:mx-0 overflow-x-scroll">
224224
<div className="min-w-fit w-full lg:w-auto lg:px-0">
225225
{/* biome-ignore lint/suspicious/noExplicitAny: no reasons for it to have type errors */}
226226
<Table size="lg" {...(props as any)} columns={columns} />

src/components/primitives/Text.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const textStyles = tv(
77
base: "font-text text-[clamp(15px,0.4167vw+0.78125rem,20px)]",
88
variants: {
99
look: {
10-
base: "text-main-11",
10+
base: "text-main-12",
1111
soft: "text-main-11",
1212
bold: "text-main-12",
1313
tint: "text-accent-12",
@@ -33,7 +33,7 @@ export const textStyles = tv(
3333
},
3434
},
3535
defaultVariants: {
36-
look: "base",
36+
look: "soft",
3737
size: "md",
3838
},
3939
},

src/components/primitives/Title.tsx

+10-8
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ export const titleStyles = tv(
88
{
99
extend: textStyles,
1010
base: "font-title font-bold",
11-
variants: {
12-
look: {
13-
base: "text-main-12",
14-
soft: "text-main-11",
15-
bold: "text-main-12",
16-
hype: "text-accent-12",
17-
},
18-
},
11+
// variants: {
12+
// look: {
13+
// base: "text-main-12",
14+
// soft: "text-main-11",
15+
// bold: "text-main-12",
16+
// tint: "text-accent-12",
17+
// hype: "text-accent-11",
18+
// },
19+
// },
1920
defaultVariants: {
2021
size: "md",
2122
look: "base",
@@ -28,6 +29,7 @@ export type TitleProps = Component<
2829
Styled<typeof titleStyles> & {
2930
h?: 1 | 2 | 3 | 4 | 5 | 6;
3031
size?: Styled<typeof textStyles>["size"];
32+
look?: Styled<typeof textStyles>["look"];
3133
},
3234
HTMLHeadingElement
3335
>;

src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ export * from "./components/dapp/TransactionHelper";
118118
export { default as TransactionHelper } from "./components/dapp/TransactionHelper";
119119
export * from "./components/dapp/Connected";
120120
export { default as Connected } from "./components/dapp/Connected";
121-
export * from "./components/dapp/Countdown";
122-
export { default as Countdown } from "./components/dapp/Countdown";
123121

124122
/**
125123
* components/layout

0 commit comments

Comments
 (0)