feature (ux): incremental ux improvement

This commit is contained in:
Mickael Kerjean 2023-04-21 07:45:22 +10:00
parent b0f120b9b5
commit 2fa1eb2cbb
3 changed files with 18 additions and 10 deletions

View file

@ -3,10 +3,11 @@
z-index: 5;
.breadcrumb{
background: white;
border-bottom: 2px solid rgba(100, 100, 100, 0.1);
border-bottom: 2px solid rgba(100, 100, 100, 0.05);
transition: 1s ease border-bottom;
margin: 0 0 0px 0;
z-index: 1000;
padding: 5px 0;
padding: 3px 0;
.ul{
list-style-type: none;
@ -20,6 +21,9 @@
}
}
}
&:hover .breadcrumb {
border-bottom: 2px solid rgba(100, 100, 100, 0.1);
}
.component_logout{
float: right;
display: inline-block;
@ -38,7 +42,7 @@
.component_path-element{
display: inline-block;
.label{color: var(--color);padding: 2px 5px;}
.label{color: rgba(0,0,0,0.75); padding: 4px 5px;}
a.label{
position: relative;
color: rgba(0,0,0,0.5);
@ -50,7 +54,7 @@
font-size: 0.8em;
opacity: 0;
transform: translateY(5px);
border-radius: 2px;
border-radius: 3px;
white-space: nowrap;
padding: 3px 10px!important;
margin: 23px 0px 5px 0px;
@ -62,7 +66,7 @@
font-size: 18px;
display: inline-block;
a{border-radius: 2px; letter-spacing: -0.5px;}
a{border-radius: 3px; letter-spacing: -0.5px;}
&.highlight a{
background: var(--emphasis-primary);
border: 2px solid var(--primary);
@ -86,6 +90,10 @@ body.touch-no{
}
}
}
body.dark-mode.touch-no {
.component_path-element-wrapper a.label:hover { background: rgba(255, 255, 255, 0.05); }
}
// mobile user have a scrollable breadcrumb
body.touch-yes{
@ -165,8 +173,9 @@ body.touch-yes{
.breadcrumb{
background: rgba(0,0,0,0.07);
}
.component_path-element a.label{
color: #f1f1f1;
.component_path-element {
.label{ color: #f1f1f1; opacity: 0.7; }
a.label { opacity: 1; }
}
}
}

View file

@ -9,7 +9,6 @@ import {
import { debounce, prompt } from "../../helpers/";
import { t } from "../../locales/";
import "./submenu.scss";
class SubmenuComponent extends React.Component {
constructor(props) {
super(props);
@ -121,7 +120,7 @@ class SubmenuComponent extends React.Component {
render() {
return (
<div className={"component_submenu" + (this.props.selected.length > 0 ? " sticky" : "")}>
<div className={"component_submenu" + (this.props.selected.length > 0 || this.state.search_input_visible ? " sticky" : "")}>
<Container>
<div className={"menubar no-select"+(this.state.search_input_visible ? " search_focus" : "")}>
<NgIf

View file

@ -109,5 +109,5 @@
}
.dark-mode .component_submenu {
input#search { color: var(--light); }
input#search { color: rgba(255, 255, 255, 0.8); }
}