Skip to content

Commit

Permalink
style: network chart
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Oct 22, 2024
1 parent 0729aef commit 6e8691f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
8 changes: 1 addition & 7 deletions app/[locale]/(main)/ClientComponents/NetworkChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,7 @@ export const NetworkChart = React.memo(function NetworkChart({
<Card>
<CardHeader className="flex flex-col items-stretch space-y-0 p-0 sm:flex-row">
<div className="flex flex-none flex-col justify-center gap-1 border-b px-6 py-4">
<CardTitle
onClick={() => {
router.push(`/${locale}/`);
}}
className="flex flex-none cursor-pointer items-center gap-0.5 text-xl"
>
<BackIcon />
<CardTitle className="flex flex-none items-center gap-0.5 text-md">
{serverName}
</CardTitle>
<CardDescription className="text-xs">
Expand Down
8 changes: 1 addition & 7 deletions app/[locale]/(main)/ClientComponents/NetworkChartLoading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ export default function NetworkChartLoading() {
<Card>
<CardHeader className="flex flex-col items-stretch space-y-0 border-b p-0 sm:flex-row">
<div className="flex flex-1 flex-col justify-center gap-1 px-6 py-5">
<CardTitle
onClick={() => {
router.push(`/${locale}/`);
}}
className="flex items-center cursor-pointer gap-0.5 text-xl"
>
<BackIcon />
<CardTitle className="flex items-center gap-0.5 text-xl">
<div className="aspect-auto h-[20px] w-24 bg-muted"></div>
</CardTitle>
<div className="mt-[2px] aspect-auto h-[14px] w-32 bg-muted"></div>
Expand Down
4 changes: 2 additions & 2 deletions components/Switch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { cn } from "@/lib/utils";
import { motion } from "framer-motion";
import React, { useRef, useEffect } from "react";
import React, { useEffect, useRef } from "react";

export default function Switch({
allTag,
Expand Down Expand Up @@ -52,7 +52,7 @@ export default function Switch({
"relative cursor-pointer rounded-3xl px-2.5 py-[8px] text-[13px] font-[600] transition-all duration-500",
nowTag === tag
? "text-black dark:text-white"
: "text-stone-400 dark:text-stone-500"
: "text-stone-400 dark:text-stone-500",
)}
>
{nowTag === tag && (
Expand Down

0 comments on commit 6e8691f

Please sign in to comment.