Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
XueMoMo committed Dec 3, 2024
1 parent d7df510 commit ead42ac
Show file tree
Hide file tree
Showing 5 changed files with 172 additions and 209 deletions.
119 changes: 46 additions & 73 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/ATable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const ATable: FC<ATableProps> = ({ header = [], data = [], loading }) => {

return <>

<table className=" overflow-auto mb-[5px] ">
<table className=" mb-[5px]">
<tr className=" bg-[#FAFAFA] rounded-lg h-[50px] w-[200px] border-b-[#FFFFFF] ">
{header.map((item, i) => {
return <th key={`table_${i}`} className={`${data.length && !loading && ' w-full'} th`}>{item.name}</th>
Expand Down
8 changes: 4 additions & 4 deletions src/components/Pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ export const Pagination = (p: Props) => {
<div className="flex">
{count > 1 && (
<div className="flex">
<span
{/* <span
onClick={doFirst}
className="mx-[0.185rem] flex justify-center items-center cursor-pointer border min-w-[32px] h-[32px] "
>
<FiChevronsLeft className="text-[gray]" />
</span>
</span> */}
<span
onClick={doPrev}
className="mx-[0.185rem] flex justify-center items-center cursor-pointer border min-w-[32px] h-[32px] "
Expand Down Expand Up @@ -128,12 +128,12 @@ export const Pagination = (p: Props) => {
>
<FiChevronRight className="text-[gray]" />
</span>
<span
{/* <span
onClick={doLast}
className=" mx-[0.185rem] flex justify-center items-center cursor-pointer border min-w-[32px] h-[32px] "
>
<FiChevronsRight className="text-[gray]" />
</span>
</span> */}
</div>
)}
</div>
Expand Down
7 changes: 7 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ body {
place-items: center;
min-width: 320px;
min-height: 100vh;
width: 100%;
}
html,#root {
width: 100%;
}
html{
font-size: 16px;
}

h1 {
Expand Down
Loading

0 comments on commit ead42ac

Please sign in to comment.