This commit is contained in:
DCCONSTRUCTIONS
2026-04-20 17:57:08 +03:00
parent 47d379e77f
commit 5b2a2fc104
5 changed files with 44 additions and 8 deletions
@@ -75,7 +75,7 @@ export const ExternalContoursRoot = observer(function ExternalContoursRoot(props
/>
</div>
)}
<div className="flex h-full w-full overflow-hidden bg-surface-1">
<div className="flex h-full w-full overflow-hidden bg-surface-1 pt-2">
<div
className={cn(
"absolute top-[50px] bottom-0 z-10 w-full flex-shrink-0 bg-surface-1 transition-all lg:!relative lg:!top-0 lg:w-2/6",
@@ -74,8 +74,8 @@ export function AuthHeaderBase(props: TAuthHeaderBase) {
<div className="sticky top-0 flex w-full flex-shrink-0 items-center justify-between gap-6 px-2 py-1">
<Link href="/">
<PlaneLockup
height={84}
width={402}
height={31}
width={148}
className="nodedc-auth-logo-lockup text-primary transition-opacity hover:opacity-90"
/>
</Link>
@@ -6,7 +6,7 @@
import { useRef, useState } from "react";
import { observer } from "mobx-react";
import { useParams } from "next/navigation";
import { useParams, usePathname } from "next/navigation";
// plane imports
import { EUserPermissions, EUserPermissionsLevel, SIDEBAR_TRACKER_ELEMENTS } from "@plane/constants";
import { useTranslation } from "@plane/i18n";
@@ -31,6 +31,7 @@ export const SidebarQuickActions = observer(function SidebarQuickActions() {
const timeoutRef = useRef<any>();
// router
const { workspaceSlug: routerWorkspaceSlug } = useParams();
const pathname = usePathname();
const workspaceSlug = routerWorkspaceSlug?.toString();
// store hooks
const { toggleCreateIssueModal } = useCommandPalette();
@@ -45,6 +46,9 @@ export const SidebarQuickActions = observer(function SidebarQuickActions() {
);
const disabled = joinedProjectIds.length === 0 || !canCreateIssue;
const workspaceDraftIssue = workspaceSlug ? (storedValue?.[workspaceSlug] ?? undefined) : undefined;
const effectivePathname =
pathname || (typeof window !== "undefined" ? window.location.pathname : undefined);
const isExternalContoursRoute = effectivePathname?.includes("/external-contours");
const handleMouseEnter = () => {
// if enter before time out clear the timeout
@@ -67,6 +71,8 @@ export const SidebarQuickActions = observer(function SidebarQuickActions() {
return Promise.resolve();
};
if (isExternalContoursRoute) return null;
return (
<>
<CreateUpdateIssueModal
+13 -4
View File
@@ -810,9 +810,7 @@
max-width: 32rem;
border: 0 !important;
outline: none !important;
box-shadow:
0 24px 64px rgba(0, 0, 0, 0.34),
0 8px 20px rgba(0, 0, 0, 0.18) !important;
box-shadow: none !important;
border-radius: 1.9rem !important;
padding: 2.2rem !important;
background:
@@ -1016,12 +1014,23 @@
.nodedc-external-card[data-active="true"] {
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.024) 0%, rgba(255, 255, 255, 0.008) 100%),
rgba(255, 255, 255, 0.035) !important;
rgb(var(--nodedc-card-active-rgb)) !important;
color: #0b1117 !important;
box-shadow:
inset 0 0 0 1px rgba(var(--nodedc-accent-rgb), 0.32),
0 12px 32px rgba(0, 0, 0, 0.16) !important;
}
.nodedc-external-card[data-active="true"] .text-primary {
color: #0b1117 !important;
}
.nodedc-external-card[data-active="true"] .text-secondary,
.nodedc-external-card[data-active="true"] .text-tertiary,
.nodedc-external-card[data-active="true"] .text-placeholder {
color: rgba(11, 17, 23, 0.72) !important;
}
.nodedc-external-content-shell {
border: 0 !important;
outline: none !important;