diff --git a/src/bundle/Resources/public/js/scripts/admin.anchor.navigation.js b/src/bundle/Resources/public/js/scripts/admin.anchor.navigation.js
index b00415af16..b817a31a46 100644
--- a/src/bundle/Resources/public/js/scripts/admin.anchor.navigation.js
+++ b/src/bundle/Resources/public/js/scripts/admin.anchor.navigation.js
@@ -7,6 +7,7 @@
const header = doc.querySelector('.ibexa-edit-header');
const headerContainer = header?.querySelector('.ibexa-edit-header__container');
+ const anchorNavigationSwitcher = doc.querySelector('.ibexa-tabs--switcher');
const SECTION_ADJUST_MARGIN_TOP = 36;
const formContainerNode = doc.querySelector('.ibexa-edit-content');
const lastSectionObserver = new ResizeObserver(() => {
@@ -88,8 +89,15 @@
let firstVisibleSection = visibleSections.find((section) => {
const { top, height } = section.getBoundingClientRect();
const headerBottomContainerHeight = header.offsetHeight - headerContainer?.offsetHeight;
-
- return top + height >= headerContainer?.offsetHeight + headerBottomContainerHeight + SECTION_ADJUST_MARGIN_TOP;
+ const anchorNavigationSwitcherHeight = anchorNavigationSwitcher?.offsetHeight || 0;
+
+ return (
+ top + height >=
+ headerContainer?.offsetHeight +
+ headerBottomContainerHeight +
+ anchorNavigationSwitcherHeight +
+ SECTION_ADJUST_MARGIN_TOP
+ );
});
if (!firstVisibleSection) {
diff --git a/src/bundle/Resources/public/scss/_anchor-navigation.scss b/src/bundle/Resources/public/scss/_anchor-navigation.scss
index 7e046286b9..9d1fb08825 100644
--- a/src/bundle/Resources/public/scss/_anchor-navigation.scss
+++ b/src/bundle/Resources/public/scss/_anchor-navigation.scss
@@ -3,6 +3,8 @@
.ibexa-anchor-navigation {
$self: &;
+ background-color: $ibexa-color-white;
+ padding: calculateRem(24px) calculateRem(32px) 0 calculateRem(32px);
&__sections {
.card {
@@ -49,13 +51,10 @@
&__header {
height: calculateRem(87px);
padding: calculateRem(20px) 0 0 calculateRem(17px);
- border-bottom: calculateRem(1px) solid $ibexa-color-light;
}
&__body {
height: calc(100% - #{calculateRem(87px)});
- overflow: auto;
- padding: calculateRem(25px);
font-size: $ibexa-text-font-size-medium;
}
@@ -73,39 +72,48 @@
&__sections {
min-width: calculateRem(240px);
+ max-width: calculateRem(240px);
list-style: none;
display: none;
margin: calculateRem(24px) 0 0;
- padding: calculateRem(24px) 0 0;
- border-top: calculateRem(1px) solid $ibexa-color-light;
+ position: absolute;
+ right: calculateRem(30px);
+ z-index: 1;
&--active {
display: block;
}
+ }
- &--no-border {
- border: 0;
- margin-top: 0;
- padding-top: 0;
- }
+ &__sections-header {
+ font-size: $ibexa-text-font-size-extra-large;
+ font-weight: 600;
+ color: $ibexa-color-primary;
+ margin: calculateRem(16px) 0;
+ }
+
+ &__sections-item {
+ height: calculateRem(32px);
}
&__sections-item-btn {
display: inline-flex;
width: 100%;
- padding: calculateRem(11px) calculateRem(15px);
+ padding: 0;
border: calculateRem(1px) solid transparent;
- border-radius: $ibexa-border-radius;
text-align: left;
+ color: $ibexa-color-dark-400;
+ align-items: center;
+ font-weight: 600;
+ border-left: 1px solid $ibexa-color-light;
&::before {
content: '';
display: block;
- width: calculateRem(8px);
- height: calculateRem(8px);
- margin: calculateRem(8px) calculateRem(16px) 0 0;
- border-radius: 50%;
- background-color: $ibexa-color-light;
+ width: calculateRem(2px);
+ height: calculateRem(32px);
+ margin: 0 calculateRem(16px) 0 0;
+ opacity: 0;
}
&::after {
@@ -119,21 +127,20 @@
}
&:hover {
- color: $ibexa-color-info;
- font-weight: 600;
+ color: $ibexa-color-primary;
&::before {
- background-color: $ibexa-color-info;
+ opacity: 1;
+ background-color: $ibexa-color-primary;
}
}
&--active {
- color: $ibexa-color-info;
- background: $ibexa-color-info-100;
- font-weight: 600;
+ color: $ibexa-color-primary;
&::before {
- background-color: $ibexa-color-info;
+ opacity: 1;
+ background-color: $ibexa-color-primary;
}
}
diff --git a/src/bundle/Resources/public/scss/_content-edit.scss b/src/bundle/Resources/public/scss/_content-edit.scss
index 74936859d1..a91bfaf812 100644
--- a/src/bundle/Resources/public/scss/_content-edit.scss
+++ b/src/bundle/Resources/public/scss/_content-edit.scss
@@ -4,6 +4,10 @@
.ibexa-edit-content {
@include edit-right-side-container;
+ &-width-wrapper {
+ width: calc(100% - calculateRem(300px));
+ }
+
&__container {
max-width: calculateRem(820px);
diff --git a/src/bundle/Resources/translations/ibexa_anchor_menu.en.xliff b/src/bundle/Resources/translations/ibexa_anchor_menu.en.xliff
index f6e555ad7b..0261143efd 100644
--- a/src/bundle/Resources/translations/ibexa_anchor_menu.en.xliff
+++ b/src/bundle/Resources/translations/ibexa_anchor_menu.en.xliff
@@ -11,6 +11,11 @@