|
@@ -9,6 +9,7 @@ import * as eventTracking from '../../../infrastructure/event-tracking'
|
|
|
import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher'
|
|
import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher'
|
|
|
import OLTooltip from '@/features/ui/components/ol/ol-tooltip'
|
|
import OLTooltip from '@/features/ui/components/ol/ol-tooltip'
|
|
|
import {
|
|
import {
|
|
|
|
|
+ DropdownToggleCustom,
|
|
|
Dropdown,
|
|
Dropdown,
|
|
|
DropdownDivider,
|
|
DropdownDivider,
|
|
|
DropdownHeader,
|
|
DropdownHeader,
|
|
@@ -18,7 +19,7 @@ import {
|
|
|
} from '@/features/ui/components/bootstrap-5/dropdown-menu'
|
|
} from '@/features/ui/components/bootstrap-5/dropdown-menu'
|
|
|
import OLButton from '@/features/ui/components/ol/ol-button'
|
|
import OLButton from '@/features/ui/components/ol/ol-button'
|
|
|
import OLButtonGroup from '@/features/ui/components/ol/ol-button-group'
|
|
import OLButtonGroup from '@/features/ui/components/ol/ol-button-group'
|
|
|
-import { bsVersion } from '@/features/utils/bootstrap-5'
|
|
|
|
|
|
|
+import { bsVersion, isBootstrap5 } from '@/features/utils/bootstrap-5'
|
|
|
import { useLayoutContext } from '@/shared/context/layout-context'
|
|
import { useLayoutContext } from '@/shared/context/layout-context'
|
|
|
|
|
|
|
|
const modifierKey = /Mac/i.test(navigator.platform) ? 'Cmd' : 'Ctrl'
|
|
const modifierKey = /Mac/i.test(navigator.platform) ? 'Cmd' : 'Ctrl'
|
|
@@ -78,15 +79,18 @@ function PdfCompileButton() {
|
|
|
{
|
|
{
|
|
|
'detach-compile-button-animate': animateCompileDropdownArrow,
|
|
'detach-compile-button-animate': animateCompileDropdownArrow,
|
|
|
'btn-striped-animated': hasChanges,
|
|
'btn-striped-animated': hasChanges,
|
|
|
- 'no-left-border': true,
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+ 'no-left-border',
|
|
|
bsVersion({ bs5: 'dropdown-button-toggle' })
|
|
bsVersion({ bs5: 'dropdown-button-toggle' })
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
- const buttonClassName = classNames({
|
|
|
|
|
- 'btn-striped-animated': hasChanges,
|
|
|
|
|
- 'no-left-radius': true,
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ const buttonClassName = classNames(
|
|
|
|
|
+ {
|
|
|
|
|
+ 'btn-striped-animated': hasChanges,
|
|
|
|
|
+ 'align-items-center py-0': isBootstrap5(),
|
|
|
|
|
+ },
|
|
|
|
|
+ 'no-left-radius px-3'
|
|
|
|
|
+ )
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<BootstrapVersionSwitcher
|
|
<BootstrapVersionSwitcher
|
|
@@ -207,7 +211,11 @@ function PdfCompileButton() {
|
|
|
</SplitMenu>
|
|
</SplitMenu>
|
|
|
}
|
|
}
|
|
|
bs5={
|
|
bs5={
|
|
|
- <Dropdown as={OLButtonGroup} autoClose="outside">
|
|
|
|
|
|
|
+ <Dropdown
|
|
|
|
|
+ as={OLButtonGroup}
|
|
|
|
|
+ autoClose="outside"
|
|
|
|
|
+ className="compile-button-group"
|
|
|
|
|
+ >
|
|
|
<OLTooltip
|
|
<OLTooltip
|
|
|
description={tooltipElement}
|
|
description={tooltipElement}
|
|
|
id="compile"
|
|
id="compile"
|
|
@@ -219,7 +227,6 @@ function PdfCompileButton() {
|
|
|
>
|
|
>
|
|
|
<OLButton
|
|
<OLButton
|
|
|
variant="primary"
|
|
variant="primary"
|
|
|
- size="sm"
|
|
|
|
|
disabled={compiling}
|
|
disabled={compiling}
|
|
|
isLoading={compiling}
|
|
isLoading={compiling}
|
|
|
onClick={() => startCompile()}
|
|
onClick={() => startCompile()}
|
|
@@ -230,6 +237,7 @@ function PdfCompileButton() {
|
|
|
</OLTooltip>
|
|
</OLTooltip>
|
|
|
|
|
|
|
|
<DropdownToggle
|
|
<DropdownToggle
|
|
|
|
|
+ as={DropdownToggleCustom}
|
|
|
split
|
|
split
|
|
|
variant="primary"
|
|
variant="primary"
|
|
|
id="pdf-recompile-dropdown"
|
|
id="pdf-recompile-dropdown"
|