mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
desktop: quieter workspace tab strip
Tab labels drop from text-base to text-sm and the overview tab no longer shows the readme's last-changed timestamp. Signed-off-by: Thomas Petersen <thomasp@squareup.com>
This commit is contained in:
@@ -5,7 +5,7 @@ import { cn } from "@/shared/lib/cn";
|
||||
import { TabsList, TabsTrigger } from "@/shared/ui/tabs";
|
||||
|
||||
const PROJECT_TAB_TRIGGER_CLASS =
|
||||
"relative h-full shrink-0 rounded-none px-2.5 text-base leading-5 tracking-tight text-muted-foreground shadow-none after:absolute after:inset-x-2.5 after:bottom-0 after:h-0.5 after:bg-current after:opacity-0 after:transition-opacity after:content-[''] hover:bg-transparent hover:text-foreground hover:after:opacity-100 data-[state=active]:bg-transparent data-[state=active]:font-semibold data-[state=active]:text-foreground data-[state=active]:shadow-none data-[state=active]:after:opacity-100";
|
||||
"relative h-full shrink-0 rounded-none px-2.5 text-sm leading-5 tracking-tight text-muted-foreground shadow-none after:absolute after:inset-x-2.5 after:bottom-0 after:h-0.5 after:bg-current after:opacity-0 after:transition-opacity after:content-[''] hover:bg-transparent hover:text-foreground hover:after:opacity-100 data-[state=active]:bg-transparent data-[state=active]:font-semibold data-[state=active]:text-foreground data-[state=active]:shadow-none data-[state=active]:after:opacity-100";
|
||||
|
||||
const PROJECT_TAB_SELECTED_CLASS =
|
||||
"font-semibold text-foreground after:opacity-100";
|
||||
|
||||
@@ -27,10 +27,7 @@ import { cn } from "@/shared/lib/cn";
|
||||
import { Button } from "@/shared/ui/button";
|
||||
import { Tabs, TabsContent } from "@/shared/ui/tabs";
|
||||
import { findReadmeFile } from "./ProjectReadmePanel";
|
||||
import {
|
||||
formatLastChangedAt,
|
||||
RepositoryFilesPanel,
|
||||
} from "./ProjectRepositoryPanel";
|
||||
import { RepositoryFilesPanel } from "./ProjectRepositoryPanel";
|
||||
import {
|
||||
type RepoSourceHeaderControls,
|
||||
RepoSourceDropdown,
|
||||
@@ -406,11 +403,6 @@ export function WorkspaceTabs({
|
||||
{updatePullRequestAction.pending ? "Updating…" : "Update PR"}
|
||||
</Button>
|
||||
) : null}
|
||||
{selectedTab === "overview" && readmeFile ? (
|
||||
<span className="ml-auto hidden shrink-0 pr-2 text-2xs text-muted-foreground sm:block">
|
||||
Last changed {formatLastChangedAt(readmeFile.lastChangedAt)}
|
||||
</span>
|
||||
) : null}
|
||||
</div>
|
||||
) : null}
|
||||
{selectedPullRequest ? (
|
||||
|
||||
Reference in New Issue
Block a user