refactor: clean up unused imports and adjust icon sizes

- Removed unused imports from the ShowProjects component for better clarity.
- Updated LibsqlIcon dimensions to use relative units for improved responsiveness.
- Adjusted icon size in the EnvironmentPage for consistency with other icons.
This commit is contained in:
Mauricio Siu
2026-03-21 17:54:33 -06:00
parent 0b08fa9a59
commit b61ca31981
3 changed files with 3 additions and 10 deletions
@@ -15,7 +15,6 @@ import { toast } from "sonner";
import { BreadcrumbSidebar } from "@/components/shared/breadcrumb-sidebar"; import { BreadcrumbSidebar } from "@/components/shared/breadcrumb-sidebar";
import { DateTooltip } from "@/components/shared/date-tooltip"; import { DateTooltip } from "@/components/shared/date-tooltip";
import { FocusShortcutInput } from "@/components/shared/focus-shortcut-input"; import { FocusShortcutInput } from "@/components/shared/focus-shortcut-input";
import { StatusTooltip } from "@/components/shared/status-tooltip";
import { TagBadge } from "@/components/shared/tag-badge"; import { TagBadge } from "@/components/shared/tag-badge";
import { TagFilter } from "@/components/shared/tag-filter"; import { TagFilter } from "@/components/shared/tag-filter";
import { import {
@@ -52,7 +51,6 @@ import {
SelectTrigger, SelectTrigger,
SelectValue, SelectValue,
} from "@/components/ui/select"; } from "@/components/ui/select";
import { TimeBadge } from "@/components/ui/time-badge";
import { api } from "@/utils/api"; import { api } from "@/utils/api";
import { useDebounce } from "@/utils/hooks/use-debounce"; import { useDebounce } from "@/utils/hooks/use-debounce";
import { HandleProject } from "./handle-project"; import { HandleProject } from "./handle-project";
@@ -200,11 +198,6 @@ export const ShowProjects = () => {
return ( return (
<> <>
{!isCloud && (
<div className="absolute top-4 right-4">
<TimeBadge />
</div>
)}
<BreadcrumbSidebar <BreadcrumbSidebar
list={[{ name: "Projects", href: "/dashboard/projects" }]} list={[{ name: "Projects", href: "/dashboard/projects" }]}
/> />
@@ -160,8 +160,8 @@ export const LibsqlIcon = ({ className }: Props) => {
return ( return (
<svg <svg
aria-label="libsql" aria-label="libsql"
height="35" height="1em"
width="35" width="1em"
viewBox="0 0 217.2 217.2" viewBox="0 0 217.2 217.2"
className={className} className={className}
> >
@@ -1543,7 +1543,7 @@ const EnvironmentPage = (
<CircuitBoard className="h-6 w-6" /> <CircuitBoard className="h-6 w-6" />
)} )}
{service.type === "libsql" && ( {service.type === "libsql" && (
<LibsqlIcon className="h-7 w-7" /> <LibsqlIcon className="h-6 w-6" />
)} )}
</span> </span>
</div> </div>