fix: Reduce spacing in EmptyPageCommunity component from gap-12 to gap-7 (#7783)
This commit is contained in:
parent
9dabe63677
commit
c2fdc823c1
5 changed files with 18 additions and 14 deletions
|
|
@ -143,7 +143,7 @@ export const MenuBar = ({}: {}): JSX.Element => {
|
||||||
<div
|
<div
|
||||||
data-testid="menu_status_saved_flow_button"
|
data-testid="menu_status_saved_flow_button"
|
||||||
id="menu_status_saved_flow_button"
|
id="menu_status_saved_flow_button"
|
||||||
className="shrink-0 text-xs font-medium text-accent-emerald-foreground"
|
className="shrink-0 text-sm font-medium text-accent-emerald-foreground"
|
||||||
>
|
>
|
||||||
Saved
|
Saved
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -269,7 +269,7 @@ export const MenuBar = ({}: {}): JSX.Element => {
|
||||||
{currentFolder?.name && (
|
{currentFolder?.name && (
|
||||||
<div className="hidden truncate md:flex">
|
<div className="hidden truncate md:flex">
|
||||||
<div
|
<div
|
||||||
className="cursor-pointer truncate pr-1 text-xs text-muted-foreground hover:text-primary"
|
className="cursor-pointer truncate pr-1 text-sm text-muted-foreground hover:text-primary"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate(
|
navigate(
|
||||||
currentFolder?.id
|
currentFolder?.id
|
||||||
|
|
@ -314,7 +314,7 @@ export const MenuBar = ({}: {}): JSX.Element => {
|
||||||
>
|
>
|
||||||
<Input
|
<Input
|
||||||
className={cn(
|
className={cn(
|
||||||
"h-6 w-full shrink-0 cursor-text text-xs font-semibold",
|
"text- h-6 w-full shrink-0 cursor-text font-semibold",
|
||||||
"bg-transparent pl-1 pr-0 transition-colors duration-200",
|
"bg-transparent pl-1 pr-0 transition-colors duration-200",
|
||||||
"border-0 outline-none focus:border-0 focus:outline-none focus:ring-0 focus:ring-offset-0",
|
"border-0 outline-none focus:border-0 focus:outline-none focus:ring-0 focus:ring-offset-0",
|
||||||
!editingName && "text-primary hover:opacity-80",
|
!editingName && "text-primary hover:opacity-80",
|
||||||
|
|
@ -335,7 +335,7 @@ export const MenuBar = ({}: {}): JSX.Element => {
|
||||||
/>
|
/>
|
||||||
<span
|
<span
|
||||||
ref={measureRef}
|
ref={measureRef}
|
||||||
className="invisible absolute left-0 top-0 -z-10 w-fit whitespace-pre text-xs font-semibold"
|
className="invisible absolute left-0 top-0 -z-10 w-fit whitespace-pre text-sm font-semibold"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
data-testid="flow_name"
|
data-testid="flow_name"
|
||||||
>
|
>
|
||||||
|
|
@ -550,7 +550,7 @@ export const MenuBar = ({}: {}): JSX.Element => {
|
||||||
>
|
>
|
||||||
<div className="flex cursor-default items-center gap-2 truncate text-sm text-muted-foreground">
|
<div className="flex cursor-default items-center gap-2 truncate text-sm text-muted-foreground">
|
||||||
<div className="flex cursor-default items-center gap-2 truncate text-sm">
|
<div className="flex cursor-default items-center gap-2 truncate text-sm">
|
||||||
<div className="w-full truncate text-xs">
|
<div className="w-full truncate text-sm">
|
||||||
{printByBuildStatus()}
|
{printByBuildStatus()}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -564,7 +564,7 @@ export const MenuBar = ({}: {}): JSX.Element => {
|
||||||
}}
|
}}
|
||||||
className={
|
className={
|
||||||
isBuilding
|
isBuilding
|
||||||
? "hidden items-center gap-1.5 text-xs text-status-red sm:flex"
|
? "hidden items-center gap-1.5 text-sm text-status-red sm:flex"
|
||||||
: "hidden"
|
: "hidden"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import ShadTooltip from "@/components/common/shadTooltipComponent";
|
import ShadTooltip from "@/components/common/shadTooltipComponent";
|
||||||
|
import { DISCORD_URL, GITHUB_URL } from "@/constants/constants";
|
||||||
import { useDarkStore } from "@/stores/darkStore";
|
import { useDarkStore } from "@/stores/darkStore";
|
||||||
import { formatNumber } from "@/utils/utils";
|
import { formatNumber } from "@/utils/utils";
|
||||||
import { FaDiscord, FaGithub } from "react-icons/fa";
|
import { FaDiscord, FaGithub } from "react-icons/fa";
|
||||||
|
|
@ -8,7 +9,10 @@ export const LangflowCounts = () => {
|
||||||
const discordCount: number = useDarkStore((state) => state.discordCount);
|
const discordCount: number = useDarkStore((state) => state.discordCount);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center gap-3">
|
<div
|
||||||
|
className="flex items-center gap-3"
|
||||||
|
onClick={() => window.open(GITHUB_URL, "_blank")}
|
||||||
|
>
|
||||||
<ShadTooltip
|
<ShadTooltip
|
||||||
content="Go to GitHub repo"
|
content="Go to GitHub repo"
|
||||||
side="bottom"
|
side="bottom"
|
||||||
|
|
@ -25,7 +29,10 @@ export const LangflowCounts = () => {
|
||||||
side="bottom"
|
side="bottom"
|
||||||
styleClasses="z-10"
|
styleClasses="z-10"
|
||||||
>
|
>
|
||||||
<div className="hit-area-hover flex items-center gap-2 rounded-md p-1 text-muted-foreground">
|
<div
|
||||||
|
onClick={() => window.open(DISCORD_URL, "_blank")}
|
||||||
|
className="hit-area-hover flex items-center gap-2 rounded-md p-1 text-muted-foreground"
|
||||||
|
>
|
||||||
<FaDiscord className="h-4 w-4" />
|
<FaDiscord className="h-4 w-4" />
|
||||||
<span className="text-xs font-semibold">
|
<span className="text-xs font-semibold">
|
||||||
{formatNumber(discordCount)}
|
{formatNumber(discordCount)}
|
||||||
|
|
|
||||||
|
|
@ -107,9 +107,6 @@ export default function AppHeader(): JSX.Element {
|
||||||
<Button
|
<Button
|
||||||
unstyled
|
unstyled
|
||||||
className="hidden items-center whitespace-nowrap pr-2 lg:inline"
|
className="hidden items-center whitespace-nowrap pr-2 lg:inline"
|
||||||
onClick={() =>
|
|
||||||
window.open("https://github.com/langflow-ai/langflow", "_blank")
|
|
||||||
}
|
|
||||||
>
|
>
|
||||||
<LangflowCounts />
|
<LangflowCounts />
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ const HeaderComponent = ({
|
||||||
key={viewType}
|
key={viewType}
|
||||||
unstyled
|
unstyled
|
||||||
size="icon"
|
size="icon"
|
||||||
className={`group relative z-10 mx-[2px] my-[2px] flex-1 rounded-lg p-2 ${
|
className={`group relative z-10 mx-[2px] my-[3px] flex-1 rounded-lg p-2 ${
|
||||||
view === viewType
|
view === viewType
|
||||||
? "text-foreground"
|
? "text-foreground"
|
||||||
: "text-muted-foreground hover:bg-muted"
|
: "text-muted-foreground hover:bg-muted"
|
||||||
|
|
@ -129,7 +129,7 @@ const HeaderComponent = ({
|
||||||
<ForwardedIconComponent
|
<ForwardedIconComponent
|
||||||
name={viewType === "list" ? "Menu" : "LayoutGrid"}
|
name={viewType === "list" ? "Menu" : "LayoutGrid"}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
className="relative bottom-[1px] h-4 w-4 group-hover:text-foreground"
|
className="h-4 w-4 group-hover:text-foreground"
|
||||||
/>
|
/>
|
||||||
</Button>
|
</Button>
|
||||||
))}
|
))}
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ export const EmptyPageCommunity = ({
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex w-full max-w-[510px] flex-col gap-12 sm:gap-[29px]">
|
<div className="flex w-full max-w-[510px] flex-col gap-7 sm:gap-[29px]">
|
||||||
<Button
|
<Button
|
||||||
unstyled
|
unstyled
|
||||||
className="group mx-3 h-[84px] sm:mx-0"
|
className="group mx-3 h-[84px] sm:mx-0"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue