diff --git a/services/web/app/views/project/ide-react-detached.pug b/services/web/app/views/project/ide-react-detached.pug index 8109da7f74..aaed99318a 100644 --- a/services/web/app/views/project/ide-react-detached.pug +++ b/services/web/app/views/project/ide-react-detached.pug @@ -8,6 +8,8 @@ block vars - var suppressFooter = true - var suppressSkipToContent = true - var suppressCookieBanner = true + - bootstrap5PageStatus = 'enabled' // One of 'disabled', 'enabled', and 'queryStringOnly' + - bootstrap5PageSplitTest = 'bootstrap-5-ide' - metadata.robotsNoindexNofollow = true block content diff --git a/services/web/frontend/js/features/pdf-preview/components/pdf-compile-button.tsx b/services/web/frontend/js/features/pdf-preview/components/pdf-compile-button.tsx index 2cf0c582a9..33eff04e57 100644 --- a/services/web/frontend/js/features/pdf-preview/components/pdf-compile-button.tsx +++ b/services/web/frontend/js/features/pdf-preview/components/pdf-compile-button.tsx @@ -19,6 +19,7 @@ import { import OLButton from '@/features/ui/components/ol/ol-button' import OLButtonGroup from '@/features/ui/components/ol/ol-button-group' import { bsVersion } from '@/features/utils/bootstrap-5' +import { useLayoutContext } from '@/shared/context/layout-context' const modifierKey = /Mac/i.test(navigator.platform) ? 'Cmd' : 'Ctrl' @@ -56,6 +57,8 @@ function PdfCompileButton() { const { t } = useTranslation() + const { detachRole } = useLayoutContext() + const fromScratchWithEvent = () => { eventTracking.sendMB('recompile-setting-changed', { setting: 'from-scratch', @@ -97,7 +100,10 @@ function PdfCompileButton() { description: tooltipElement, id: 'compile', tooltipProps: { className: 'keyboard-tooltip' }, - overlayProps: { delayShow: 500 }, + overlayProps: { + delayShow: 500, + placement: detachRole === 'detached' ? 'bottom' : undefined, + }, }, icon: { type: 'refresh', spin: compiling }, onClick: () => startCompile(), @@ -206,7 +212,10 @@ function PdfCompileButton() { description={tooltipElement} id="compile" tooltipProps={{ className: 'keyboard-tooltip' }} - overlayProps={{ delay: { show: 500, hide: 0 } }} + overlayProps={{ + delay: { show: 500, hide: 0 }, + placement: detachRole === 'detached' ? 'bottom' : undefined, + }} >