+
{renderScreen()}
diff --git a/src/features/dashboard/manage-dashboard/manage-dashboard.scss b/src/features/dashboard/manage-dashboard/manage-dashboard.scss
index 03a8621af..fe2f4dc26 100644
--- a/src/features/dashboard/manage-dashboard/manage-dashboard.scss
+++ b/src/features/dashboard/manage-dashboard/manage-dashboard.scss
@@ -4,7 +4,14 @@
}
}
-.breadcrumbs {
- padding-left: 5%;
- padding-top: 1rem;
+.breadcrumbs_wrapper {
+ width: 100%;
+ margin-top: 1.5rem;
+ max-width: 82rem;
+ margin-left: auto;
+ margin-right: auto;
+
+ @media screen and (max-width: 1440px) {
+ max-width: 90%;
+ }
}
diff --git a/src/styles/index.scss b/src/styles/index.scss
index 6cc99021a..c7a863802 100644
--- a/src/styles/index.scss
+++ b/src/styles/index.scss
@@ -213,6 +213,12 @@ div[class*='sidebarViewport'] {
}
}
+.quill-modal {
+ &__content-wrapper {
+ overflow: auto !important;
+ }
+}
+
.modal-overlay {
> div {
z-index: 1000;
@@ -401,6 +407,12 @@ div[class*='sidebarViewport'] {
width: calc(100% - 1.25rem) !important;
}
&__inner {
+ @media screen and (min-width: 1440px) {
+ max-width: 1310px;
+ gap: rem(14);
+ margin: auto;
+ }
+
.navbar__items:first-child a {
font-weight: normal;
}
@@ -427,7 +439,7 @@ div[class*='sidebarViewport'] {
&__brand {
margin-right: rem(10);
- @media screen and (max-width: 1024px) {
+ @media screen and (max-width: 1440px) {
margin-right: rem(4);
}
}
diff --git a/src/theme/Navbar/MobileSidebar/PrimaryMenu/primary-menu.scss b/src/theme/Navbar/MobileSidebar/PrimaryMenu/primary-menu.scss
index fd3cc8eae..2e43088e3 100644
--- a/src/theme/Navbar/MobileSidebar/PrimaryMenu/primary-menu.scss
+++ b/src/theme/Navbar/MobileSidebar/PrimaryMenu/primary-menu.scss
@@ -39,6 +39,7 @@
}
.language_sidebar {
+ padding: 1rem;
position: fixed;
top: 0;
left: 0;
diff --git a/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx b/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx
index 9cc486be2..3d8a5fec6 100644
--- a/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx
+++ b/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx
@@ -1,10 +1,11 @@
-import React, { useEffect, useState } from 'react';
+import React, { useEffect, useMemo, useState } from 'react';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import { useLocation } from '@docusaurus/router';
+import { LabelPairedGlobeLgRegularIcon } from '@deriv/quill-icons';
import DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';
import type { LinkLikeNavbarItemProps } from '@theme/NavbarItem';
import type { Props } from '@theme/NavbarItem/LocaleDropdownNavbarItem';
-import classnames from 'classnames';
+import clsx from 'clsx';
import './locale-dropdown-navbar-item.scss';
const replaceLocale = (path, newLocale, locales, trailingSlash) => {
@@ -44,25 +45,14 @@ export default function LocaleDropdownNavbarItem({
siteConfig: { trailingSlash },
} = useDocusaurusContext();
const { pathname } = useLocation();
- const { newPath, currentLocale } = replaceLocale(pathname, null, locales, trailingSlash);
+ const { currentLocale } = replaceLocale(pathname, null, locales, trailingSlash);
const [selectedLocale, setSelectedLocale] = useState(currentLocale);
- const [isDropdownOpen, setIsDropdownOpen] = useState(false);
useEffect(() => {
const { currentLocale } = replaceLocale(pathname, null, locales, trailingSlash);
setSelectedLocale(currentLocale);
}, [pathname, locales, trailingSlash]);
- const handleMouseEnter = () => {
- setIsDropdownOpen(true);
- document.body.style.overflow = 'overlay';
- };
-
- const handleMouseLeave = () => {
- setIsDropdownOpen(false);
- document.body.style.overflow = 'auto';
- };
-
const localeItems: LinkLikeNavbarItemProps[] = [];
for (const locale of locales) {
localeItems.push({
@@ -70,7 +60,7 @@ export default function LocaleDropdownNavbarItem({
lang: localeConfigs[locale].htmlLang,
target: '_self',
autoAddBaseUrl: false,
- className: classnames({ 'dropdown__link--active': locale === selectedLocale }),
+ className: clsx({ 'dropdown__link--active': locale === selectedLocale }),
onClick: (e) => {
e.preventDefault();
changeLocale(locale, locales, trailingSlash);
@@ -96,13 +86,18 @@ export default function LocaleDropdownNavbarItem({
const items = [...dropdownItemsBefore, ...localeItems, ...dropdownItemsAfter];
const dropdownLabel = getShortNames(selectedLocale);
+ const localeDropdownLabel = useMemo(() => {
+ return (
+
+
+ {dropdownLabel}
+
+ );
+ }, [selectedLocale]);
+
return (
-
-
{dropdownLabel}>} items={items} />
+
+
);
}
diff --git a/src/theme/NavbarItem/LocaleDropdownNavbarItem/locale-dropdown-navbar-item.scss b/src/theme/NavbarItem/LocaleDropdownNavbarItem/locale-dropdown-navbar-item.scss
index bf9a6b787..f45222b87 100644
--- a/src/theme/NavbarItem/LocaleDropdownNavbarItem/locale-dropdown-navbar-item.scss
+++ b/src/theme/NavbarItem/LocaleDropdownNavbarItem/locale-dropdown-navbar-item.scss
@@ -1,64 +1,37 @@
@use 'src/styles/utility' as *;
.language_switcher {
- .dropdown {
- position: relative;
- cursor: pointer;
- }
.dropdown > .navbar__link:after {
display: none;
}
a.navbar__link {
color: var(--core-color-solid-slate-1400, #000) !important;
+ display: inline-block;
}
- .dropdown__menu {
- position: fixed;
- display: flex;
- top: 72px;
- padding-right: 5.5%;
- width: 100vw;
- min-width: 997px;
- padding-bottom: 32px;
- flex-direction: column;
- align-items: center;
- gap: 24px;
- background-color: var(--ifm-navbar-background-color);
- box-shadow: var(--ifm-navbar-shadow);
- align-items: flex-end;
- cursor: pointer;
+ .navbar__item {
+ padding: 0;
}
- .navbar__items--right .dropdown__link {
- font-weight: normal;
- font-style: normal;
- line-height: 24px;
- font-size: 18px;
- @media (max-width: 1201px) {
- font-size: rem(1.4);
- }
- }
+ .dropdown__menu {
+ padding: 0 15px 12px;
- .navbar__items--right a {
- @media (max-width: 1201px) {
- font-size: rem(1.4);
+ li {
+ cursor: pointer;
+
+ a:hover {
+ background-color: var(--hover-solid-light-100);
+ border-radius: 10px;
+ }
}
}
- .dropdown {
- height: 72px;
- position: relative !important;
- top: 25px;
- background-image: url('/img/language-switcher.svg');
- background-repeat: no-repeat;
- padding: 2px 22px;
+ .localeItem {
+ display: flex;
+ gap: 10px;
+ flex-direction: row;
align-items: center;
- gap: 4px;
- justify-content: flex-end;
- @media (max-width: 996px) {
- display: none;
- }
}
.navbar__link {
@@ -69,12 +42,12 @@
font-size: 16px;
font-weight: normal;
margin-top: 15px;
+ padding: 10px;
color: var(--core-color-opacity-black-600, rgba(0, 0, 0, 0.72)) !important;
- background-color: var(--ifm-navbar-background-color);
}
.dropdown__link--active {
- color: var(--core-color-opacity-black-600, rgba(0, 0, 0, 0.72)) !important;
+ color: var(--colors-coral500) !important;
background-color: var(--ifm-navbar-background-color);
}
}