feat : impove UI
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ export default function NotFound() {
|
|||||||
</EmptyDescription>
|
</EmptyDescription>
|
||||||
</EmptyHeader>
|
</EmptyHeader>
|
||||||
<EmptyContent>
|
<EmptyContent>
|
||||||
<Button className="min-h-11" nativeButton={false} render={<Link href="/" />}>กลับไปหน้ารวมตัวละคร</Button>
|
<Button nativeButton={false} render={<Link href="/" />}>กลับไปหน้ารวมตัวละคร</Button>
|
||||||
</EmptyContent>
|
</EmptyContent>
|
||||||
</Empty>
|
</Empty>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import Image from "@/components/ui/resilient-image";
|
import Image from "@/components/ui/resilient-image";
|
||||||
import { MousePointerClickIcon } from "lucide-react";
|
|
||||||
import { Children, Fragment, type ReactNode, useState } from "react";
|
import { Children, Fragment, type ReactNode, useState } from "react";
|
||||||
import { Separator } from "@/components/ui/separator";
|
import { Separator } from "@/components/ui/separator";
|
||||||
import { ScrollableNav } from "@/components/public/scrollable-nav";
|
import { ScrollableNav } from "@/components/public/scrollable-nav";
|
||||||
@@ -10,7 +9,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
|||||||
export function ConditionTabIcon({ iconUrl }: { iconUrl?: string | null }) {
|
export function ConditionTabIcon({ iconUrl }: { iconUrl?: string | null }) {
|
||||||
return iconUrl
|
return iconUrl
|
||||||
? <Image src={iconUrl} alt="" width={32} height={32} className="size-8 shrink-0 object-contain" aria-hidden="true" data-icon="inline-start" />
|
? <Image src={iconUrl} alt="" width={32} height={32} className="size-8 shrink-0 object-contain" aria-hidden="true" data-icon="inline-start" />
|
||||||
: <MousePointerClickIcon className="size-5 text-primary group-aria-pressed/tabs:text-primary-foreground" aria-hidden="true" data-icon="inline-start" />;
|
: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ConditionSwitcher({
|
export function ConditionSwitcher({
|
||||||
|
|||||||
@@ -781,7 +781,6 @@ function ArtifactSectionContent({
|
|||||||
<div key={condition.id} data-tier-condition={conditionIndex} className="artifact-export-tierlist flex flex-col gap-5">
|
<div key={condition.id} data-tier-condition={conditionIndex} className="artifact-export-tierlist flex flex-col gap-5">
|
||||||
{!exporting && <ComparisonContext />}
|
{!exporting && <ComparisonContext />}
|
||||||
{exporting && guide.artifactGroups.length > 1 ? <p className="text-sm font-medium">{condition.name || <ExportText th={`เงื่อนไข ${conditionIndex + 1}`} en={`Condition ${conditionIndex + 1}`} />}</p> : null}
|
{exporting && guide.artifactGroups.length > 1 ? <p className="text-sm font-medium">{condition.name || <ExportText th={`เงื่อนไข ${conditionIndex + 1}`} en={`Condition ${conditionIndex + 1}`} />}</p> : null}
|
||||||
{condition.note ? <p data-export-note className="whitespace-pre-wrap text-sm text-muted-foreground">{condition.note}</p> : null}
|
|
||||||
<TierList>
|
<TierList>
|
||||||
{condition.tiers.map((group, groupIndex) => <TierGroup key={group.id}>
|
{condition.tiers.map((group, groupIndex) => <TierGroup key={group.id}>
|
||||||
{!exporting && groupIndex > 0 ? <Separator /> : null}
|
{!exporting && groupIndex > 0 ? <Separator /> : null}
|
||||||
@@ -795,6 +794,9 @@ function ArtifactSectionContent({
|
|||||||
</CardTitle>
|
</CardTitle>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="flex flex-col gap-3">
|
<CardContent className="flex flex-col gap-3">
|
||||||
|
{groupIndex === 0 && condition.note ? (
|
||||||
|
<p data-export-note className="whitespace-pre-wrap text-sm text-muted-foreground">{condition.note}</p>
|
||||||
|
) : null}
|
||||||
{group.rows.map((row, index) => (
|
{group.rows.map((row, index) => (
|
||||||
<div
|
<div
|
||||||
key={row.id}
|
key={row.id}
|
||||||
|
|||||||
Reference in New Issue
Block a user