diff --git a/src/common/NavBar/AddonsButton/styles.less b/src/common/NavBar/AddonsButton/styles.less
index 48715fc05..1ffd45be1 100644
--- a/src/common/NavBar/AddonsButton/styles.less
+++ b/src/common/NavBar/AddonsButton/styles.less
@@ -10,8 +10,8 @@
.icon {
flex: none;
- width: 1.6rem;
- height: 1.6rem;
+ width: 50%;
+ height: 50%;
fill: var(--color-surfacelighter);
}
}
\ No newline at end of file
diff --git a/src/common/NavBar/FullscreenButton/styles.less b/src/common/NavBar/FullscreenButton/styles.less
index 63a7e636e..7d140343f 100644
--- a/src/common/NavBar/FullscreenButton/styles.less
+++ b/src/common/NavBar/FullscreenButton/styles.less
@@ -10,8 +10,8 @@
.icon {
flex: none;
- width: 1.6rem;
- height: 1.6rem;
+ width: 50%;
+ height: 50%;
fill: var(--color-surfacelighter);
}
}
\ No newline at end of file
diff --git a/src/common/NavBar/NavBar.js b/src/common/NavBar/NavBar.js
index f983803f6..1a75f843e 100644
--- a/src/common/NavBar/NavBar.js
+++ b/src/common/NavBar/NavBar.js
@@ -8,7 +8,7 @@ const FullscreenButton = require('./FullscreenButton');
const NavMenu = require('./NavMenu');
const styles = require('./styles');
-const NavBar = React.memo(({ className, backButton = false, tabs = [], title = '', searchBar = false, addonsButton = false, fullscreenButton = false, navMenu = false }) => {
+const NavBar = React.memo(({ className, backButton, tabs, title, searchBar, addonsButton, fullscreenButton, navMenu }) => {
const backButtonOnClick = React.useCallback(() => {
window.history.back();
}, []);
diff --git a/src/common/NavBar/NavMenu/NavMenu.js b/src/common/NavBar/NavMenu/NavMenu.js
index 1da7a8793..2c95a8db1 100644
--- a/src/common/NavBar/NavMenu/NavMenu.js
+++ b/src/common/NavBar/NavMenu/NavMenu.js
@@ -35,49 +35,49 @@ const NavMenu = ({ className }) => {
}}
/>
-
{user.anonymous ? 'Anonymous user' : user.email}
+
{user.anonymous ? 'Anonymous user' : user.email}
diff --git a/src/common/NavBar/NavMenu/styles.less b/src/common/NavBar/NavMenu/styles.less
index 85d7b0215..6efb3d87b 100644
--- a/src/common/NavBar/NavMenu/styles.less
+++ b/src/common/NavBar/NavMenu/styles.less
@@ -14,8 +14,8 @@
.icon {
flex: none;
- width: 1.6rem;
- height: 1.6rem;
+ width: 50%;
+ height: 50%;
fill: var(--color-surfacelighter);
}
}
@@ -51,9 +51,11 @@
flex-direction: row;
align-items: center;
padding: 0.6rem 0.6rem 0 0;
- color: var(--color-surfacelighter);
- .label {
+ .email-label {
+ flex: 1;
+ max-height: 2.4em;
+ color: var(--color-surfacelighter);
user-select: text;
}
}
@@ -64,19 +66,20 @@
flex-direction: row;
align-items: center;
padding: 0 0.6rem 0.6rem 0;
- color: var(--color-surface);
&:hover, &:focus {
outline: none;
- color: var(--color-surfacelighter);
- text-decoration: underline;
- }
- }
- .email-container, .logout-button-container {
- .label {
+ .logout-label {
+ color: var(--color-surfacelighter);
+ text-decoration: underline;
+ }
+ }
+
+ .logout-label {
flex: 1;
max-height: 2.4em;
+ color: var(--color-surface);
}
}
}
@@ -96,13 +99,13 @@
.icon {
flex: none;
- width: 4rem;
- height: 4rem;
- padding: 1.3rem;
+ width: 1.4rem;
+ height: 1.4rem;
+ margin: 1.3rem;
fill: var(--color-secondarylight);
}
- .label {
+ .nav-menu-option-label {
flex: 1;
max-height: 2.4em;
padding-right: 1.3rem;
diff --git a/src/common/NavBar/NavTabButton/NavTabButton.js b/src/common/NavBar/NavTabButton/NavTabButton.js
index b4e3c1fb0..c1106eecc 100644
--- a/src/common/NavBar/NavTabButton/NavTabButton.js
+++ b/src/common/NavBar/NavTabButton/NavTabButton.js
@@ -8,7 +8,7 @@ const routesRegexp = require('stremio/common/routesRegexp');
const useLocationHash = require('stremio/common/useLocationHash');
const styles = require('./styles');
-const NavTabButton = ({ className, icon = '', label = '', href = '', onClick }) => {
+const NavTabButton = ({ className, icon, label, href, onClick }) => {
const locationHash = useLocationHash();
const routeRegexp = React.useMemo(() => {
if (typeof href === 'string' && href.length > 0) {
@@ -24,7 +24,7 @@ const NavTabButton = ({ className, icon = '', label = '', href = '', onClick })
const active = React.useMemo(() => {
if (routeRegexp !== null) {
const { pathname: locationPathname } = UrlUtils.parse(locationHash.slice(1));
- return !!routeRegexp.exec(locationPathname);
+ return !!locationPathname.match(routeRegexp);
}
return false;
diff --git a/src/common/NavBar/SearchBar/SearchBar.js b/src/common/NavBar/SearchBar/SearchBar.js
index f045df208..a4b1abc4d 100644
--- a/src/common/NavBar/SearchBar/SearchBar.js
+++ b/src/common/NavBar/SearchBar/SearchBar.js
@@ -16,7 +16,7 @@ const SearchBar = ({ className }) => {
const searchInputRef = React.useRef(null);
const [active, query] = React.useMemo(() => {
const { pathname: locationPathname, search: locationSearch } = UrlUtils.parse(locationHash.slice(1));
- const active = !!routesRegexp.search.regexp.exec(locationPathname);
+ const active = !!locationPathname.match(routesRegexp.search.regexp);
const queryParams = new URLSearchParams(locationSearch);
const query = (active && queryParams.has('q')) ? queryParams.get('q') : '';
return [active, query];
@@ -56,10 +56,10 @@ const SearchBar = ({ className }) => {
/>
:
}
-