diff --git a/apps/web/core/components/command-palette/shortcuts-modal/modal.tsx b/apps/web/core/components/command-palette/shortcuts-modal/modal.tsx index f4076db4cf..0cf5f3ab9f 100644 --- a/apps/web/core/components/command-palette/shortcuts-modal/modal.tsx +++ b/apps/web/core/components/command-palette/shortcuts-modal/modal.tsx @@ -25,7 +25,7 @@ export const ShortcutsModal: FC = (props) => { return ( - + = (props) => {
-
+
= (props) => { return ( <> setSearchTerm("")} appear> - + = (props) => {
-
+
= observer((props) => {
= observer((props: Props) => {
= (props) => { setQuery("")} appear>
- + = (props) => { return ( - + = (props) => {
-
+
= (props) => { return ( - + = ({ return ( <> setSearchTerm("")} appear> - + = ({
-
+
= (props) => { return ( - + = (props) => {
-
+
= observer((props) => { const peekOverviewIssueClassName = cn( !embedIssue - ? "fixed z-20 flex flex-col overflow-hidden rounded border border-custom-border-200 bg-custom-background-100 transition-all duration-300" + ? "fixed z-[25] flex flex-col overflow-hidden rounded border border-custom-border-200 bg-custom-background-100 transition-all duration-300" : `w-full h-full`, !embedIssue && { "bottom-0 right-0 top-0 w-full lg:w-[1024px] border-0 border-l": peekMode === "side-peek", "size-5/6 top-[8.33%] left-[8.33%]": peekMode === "modal", - "inset-0 m-4": peekMode === "full-screen", + "inset-0 m-4 absolute": peekMode === "full-screen", } ); const toggleEditEpicModal = (value: boolean) => setEditEpicModal(value); const toggleDeleteEpicModal = (value: boolean) => setDeleteEpicModal(value); const toggleDuplicateEpicModal = (value: boolean) => setDuplicateEpicModal(value); - return ( + + const shouldUsePortal = !embedIssue && peekMode === "full-screen"; + + const portalElement = document.getElementById("full-screen-portal"); + + const content = ( <> {issueId && (
= observer((props) => { )} ); + + return shouldUsePortal && portalElement ? createPortal(content, portalElement) : content; }); diff --git a/apps/web/ee/components/initiatives/details/main/collapsible-section/epics/workspace-epic-modal.tsx b/apps/web/ee/components/initiatives/details/main/collapsible-section/epics/workspace-epic-modal.tsx index a8eac920fb..1364b05473 100644 --- a/apps/web/ee/components/initiatives/details/main/collapsible-section/epics/workspace-epic-modal.tsx +++ b/apps/web/ee/components/initiatives/details/main/collapsible-section/epics/workspace-epic-modal.tsx @@ -98,7 +98,7 @@ export const WorkspaceEpicsListModal: React.FC = observer((props) => { return ( <> setSearchTerm("")} appear> - + = observer((props) => {
-
+
= (props) => { const stage = CUSTOMER_STAGES.find((stage) => stage.value === customer?.stage); return (
-
+
diff --git a/packages/ui/src/dropdowns/custom-menu.tsx b/packages/ui/src/dropdowns/custom-menu.tsx index d043ced70c..7321f12b8d 100644 --- a/packages/ui/src/dropdowns/custom-menu.tsx +++ b/packages/ui/src/dropdowns/custom-menu.tsx @@ -414,7 +414,7 @@ const SubMenu: React.FC = (props) => { style={styles.popper} {...attributes.popper} className={cn( - "fixed z-[20] min-w-[12rem] overflow-hidden rounded-md border-[0.5px] border-custom-border-300 bg-custom-background-100 p-1 text-xs shadow-custom-shadow-lg", + "fixed z-30 min-w-[12rem] overflow-hidden rounded-md border-[0.5px] border-custom-border-300 bg-custom-background-100 p-1 text-xs shadow-custom-shadow-lg", "ring-1 ring-black ring-opacity-5", // Additional styling to make it stand out contentClassName )} diff --git a/packages/ui/src/dropdowns/custom-search-select.tsx b/packages/ui/src/dropdowns/custom-search-select.tsx index d26163e695..68fb90cb5d 100644 --- a/packages/ui/src/dropdowns/custom-search-select.tsx +++ b/packages/ui/src/dropdowns/custom-search-select.tsx @@ -138,7 +138,7 @@ export const CustomSearchSelect = (props: ICustomSearchSelectProps) => {
= (props) => { return ( - handleClose && handleClose()}> + handleClose && handleClose()}> = (props) => {
-
+