chore: 페이지 내 테이블 높이 유동적으로 변경
This commit is contained in:
@@ -133,7 +133,7 @@ function BannerPage() {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="card !m-[1.2rem] h-full overflow-auto !p-0">
|
||||
<div className="card !m-[1.2rem] !p-0">
|
||||
<DataTable table={table} onRowClick={handleRowClick} viewPagination />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -134,7 +134,7 @@ function BbsPage() {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="card !m-[1.2rem] h-full overflow-auto !p-0">
|
||||
<div className="card !m-[1.2rem] !p-0">
|
||||
<DataTable table={table} onRowClick={handleRowClick} viewPagination />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -89,7 +89,7 @@ function ContentsPage() {
|
||||
등록
|
||||
</Button>
|
||||
</div>
|
||||
<div className="card !m-[1.2rem] overflow-auto !p-0">
|
||||
<div className="card !m-[1.2rem] !p-0">
|
||||
<DataTable
|
||||
table={table}
|
||||
onRowClick={handleRowClick}
|
||||
|
||||
@@ -108,7 +108,7 @@ function FilePage() {
|
||||
<div className="card-header">
|
||||
<h3 className="text-2xl font-medium text-label">파일 목록</h3>
|
||||
</div>
|
||||
<div className="card !m-[1.2rem] overflow-auto !p-0">
|
||||
<div className="card !m-[1.2rem] !p-0">
|
||||
<DataTable table={table} viewPagination />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -121,7 +121,7 @@ function ImagePage() {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="card !m-[1.2rem] h-full overflow-auto !p-0">
|
||||
<div className="card !m-[1.2rem] !p-0">
|
||||
<DataTable table={table} onRowClick={handleRowClick} viewPagination />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -113,7 +113,7 @@ function ModulePage() {
|
||||
<h3 className="text-2xl font-medium text-label">모듈API 목록</h3>
|
||||
<Button onClick={() => router.push("/module/register")}>등록</Button>
|
||||
</div>
|
||||
<div className="card !m-[1.2rem] h-[59rem] overflow-auto !p-0">
|
||||
<div className="card !m-[1.2rem] !p-0">
|
||||
<DataTable table={table} onRowClick={handleRowClick} viewPagination />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -120,7 +120,7 @@ function PopupPage() {
|
||||
</AuthorityButton>
|
||||
</div>
|
||||
</div>
|
||||
<div className="card !m-[1.2rem] h-[29.2rem] overflow-auto !p-0">
|
||||
<div className="card !m-[1.2rem] !p-0">
|
||||
<DataTable table={table} onRowClick={handleRowClick} viewPagination />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -332,7 +332,7 @@ function RecentPage() {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="card !m-[1.2rem] h-full overflow-auto !p-0">
|
||||
<div className="card !m-[1.2rem] !p-0">
|
||||
<DataTable table={table} onRowClick={handleRowClick} viewPagination />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -85,7 +85,7 @@ function SitePage() {
|
||||
<h3 className="text-2xl font-medium text-label">사이트 목록</h3>
|
||||
<Button onClick={() => router.push("/site/register")}>등록</Button>
|
||||
</div>
|
||||
<div className="card !m-[1.2rem] h-[29.2rem] overflow-auto !p-0">
|
||||
<div className="card !m-[1.2rem] !p-0">
|
||||
<DataTable table={table} onRowClick={handleRowClick} viewPagination />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -120,7 +120,7 @@ function SurveyPage() {
|
||||
</AuthorityButton>
|
||||
</div>
|
||||
</div>
|
||||
<div className="card !m-[1.2rem] min-h-[30rem] overflow-auto !p-0">
|
||||
<div className="card !m-[1.2rem] !p-0">
|
||||
<DataTable table={table} onRowClick={handleRowClick} viewPagination />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -85,7 +85,7 @@ function UserSurveyArticle({ srvySn }: { srvySn: string }) {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="h-screen bg-[#f1f6f9] p-4">
|
||||
<div className="h-screen bg-container p-4">
|
||||
<div className="card card-border !m-0 max-h-full overflow-auto">
|
||||
<Form {...form}>
|
||||
<form onSubmit={form.handleSubmit(onSubmit)}>
|
||||
@@ -190,7 +190,7 @@ function UserSurveyArticle({ srvySn }: { srvySn: string }) {
|
||||
</div>
|
||||
</div>
|
||||
<hr className="my-8" />
|
||||
<div className="h-[8rem] overflow-auto rounded-sm bg-accent p-4">
|
||||
<div className="h-[8rem] overflow-auto rounded-sm bg-accent p-4 text-accent-foreground">
|
||||
{userSurvey?.srvyWrtGdCn}
|
||||
</div>
|
||||
<div className="mt-10 flex flex-col gap-10">
|
||||
@@ -447,7 +447,7 @@ function TextareaArticle({
|
||||
<FormItem>
|
||||
<FormControl>
|
||||
<Textarea
|
||||
className="!text-[1.3rem]"
|
||||
className="bg-form !text-[1.3rem]"
|
||||
placeholder="답변을 입력해주세요"
|
||||
{...field}
|
||||
/>
|
||||
|
||||
@@ -56,7 +56,7 @@ function UserSurveyResult({ srvySn }: { srvySn: string }) {
|
||||
});
|
||||
|
||||
return (
|
||||
<div className="h-screen bg-[#f1f6f9] p-4">
|
||||
<div className="h-screen bg-container p-4">
|
||||
<div className="card card-border !m-0 max-h-full overflow-auto">
|
||||
<div className="card-header sticky -top-2 z-10 bg-background">
|
||||
<h1 className="text-2xl font-bold text-foreground">
|
||||
@@ -195,7 +195,7 @@ function WithPieChartResult({
|
||||
<span className="flex size-8 items-center justify-center rounded-full bg-primary text-[1.3rem] font-medium text-primary-foreground">
|
||||
{index + 1}
|
||||
</span>
|
||||
<span className="font-medium">{data?.qstnCn}</span>
|
||||
<span className="font-medium text-foreground">{data?.qstnCn}</span>
|
||||
</h2>
|
||||
<div className="flex gap-4">
|
||||
<div className="h-[28rem] w-[28rem] shrink-0">
|
||||
@@ -261,7 +261,7 @@ function WithBarChartResult({
|
||||
<span className="flex size-8 items-center justify-center rounded-full bg-primary text-[1.3rem] font-medium text-primary-foreground">
|
||||
{index + 1}
|
||||
</span>
|
||||
<span className="font-medium">{data?.qstnCn}</span>
|
||||
<span className="font-medium text-foreground">{data?.qstnCn}</span>
|
||||
</h2>
|
||||
<div className="flex gap-4">
|
||||
<div className="h-[28rem] w-[28rem] shrink-0">
|
||||
@@ -306,7 +306,7 @@ function InputResult({
|
||||
<span className="flex size-8 items-center justify-center rounded-full bg-primary text-[1.3rem] font-medium text-primary-foreground">
|
||||
{index + 1}
|
||||
</span>
|
||||
<span className="font-medium">{data?.qstnCn}</span>
|
||||
<span className="font-medium text-foreground">{data?.qstnCn}</span>
|
||||
</h2>
|
||||
<div className="card card-border !mx-0 flex max-h-[40rem] flex-col gap-2 overflow-auto">
|
||||
{data?.articles[0]?.inputRslts.map((input, index) => (
|
||||
@@ -315,12 +315,16 @@ function InputResult({
|
||||
key={`input-${index}`}
|
||||
>
|
||||
<div className="flex items-center justify-between">
|
||||
<span className="font-medium">{input.rspdntNm}</span>
|
||||
<span className="text-[1.2rem]">
|
||||
<span className="font-medium text-foreground">
|
||||
{input.rspdntNm}
|
||||
</span>
|
||||
<span className="text-[1.2rem] text-label">
|
||||
{dayjs(input.ansDt).format("YYYY-MM-DD")}
|
||||
</span>
|
||||
</div>
|
||||
<p className="mt-2 whitespace-pre-wrap">{input.ansCn}</p>
|
||||
<p className="mt-2 whitespace-pre-wrap text-foreground">
|
||||
{input.ansCn}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -109,7 +109,7 @@ function TemplatePage() {
|
||||
등록
|
||||
</Button>
|
||||
</div>
|
||||
<div className="card !m-[1.2rem] h-[29.2rem] overflow-auto !p-0">
|
||||
<div className="card !m-[1.2rem] !p-0">
|
||||
<DataTable table={table} onRowClick={handleRowClick} viewPagination />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -107,7 +107,7 @@ function TermsPage() {
|
||||
<h3 className="text-2xl font-medium text-label">약관 목록</h3>
|
||||
<Button onClick={() => router.push("/terms/register")}>등록</Button>
|
||||
</div>
|
||||
<div className="card !m-[1.2rem] h-[29.2rem] overflow-auto !p-0">
|
||||
<div className="card !m-[1.2rem] !p-0">
|
||||
<DataTable table={table} onRowClick={handleRowClick} viewPagination />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user