fix styles & missing z-index

This commit is contained in:
SrGooglo 2023-10-10 12:15:22 +00:00
parent 04a72c80b2
commit ca90786e92
3 changed files with 28 additions and 17 deletions

View File

@ -40,12 +40,16 @@ export default (props) => {
transform: `translateY(-${y}px)`, transform: `translateY(-${y}px)`,
}} }}
> >
{ <div
render?.component && React.cloneElement( className="page_header"
render?.component, >
render?.options?.props ?? {} {
) render?.component && React.cloneElement(
} render?.component,
render?.options?.props ?? {}
)
}
</div>
</div> </div>
}} }}
</Motion> </Motion>

View File

@ -2,8 +2,6 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 10px;
position: sticky; position: sticky;
z-index: 100; z-index: 100;
@ -13,22 +11,29 @@
width: 100%; width: 100%;
margin-bottom: 20px; .page_header {
padding: 5px; display: block;
margin: 10px 0 20px 0;
backdrop-filter: blur(10px); padding: 5px;
background-color: rgba(var(--background-color-accent-values), 0.8); gap: 10px;
border-radius: 12px; backdrop-filter: blur(10px);
border: 1px solid var(--border-color); background-color: rgba(var(--background-color-accent-values), 0.8);
overflow: hidden; border-radius: 12px;
border: 1px solid var(--border-color);
overflow: hidden;
transition: all 150ms ease-in-out;
}
&.hidden { &.hidden {
opacity: 0; opacity: 0;
height: 0; height: 0;
padding: 0; padding: 0;
margin: 0; margin: 10px 0;
} }
} }

View File

@ -13,6 +13,8 @@
height: 100dvh; height: 100dvh;
padding: 10px; padding: 10px;
z-index: 150;
} }
.tools-bar { .tools-bar {
@ -65,7 +67,7 @@
margin-bottom: 10px; margin-bottom: 10px;
z-index: 50; z-index: 150;
-webkit-box-shadow: 0 0 0 1px rgba(63, 63, 68, 0.05), 0 1px 3px 0 var(--shadow-color); -webkit-box-shadow: 0 0 0 1px rgba(63, 63, 68, 0.05), 0 1px 3px 0 var(--shadow-color);
-moz-box-shadow: 0 0 0 1px rgba(63, 63, 68, 0.05), 0 1px 3px 0 var(--shadow-color); -moz-box-shadow: 0 0 0 1px rgba(63, 63, 68, 0.05), 0 1px 3px 0 var(--shadow-color);