mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-09 20:00:53 +00:00
fix z index issues
This commit is contained in:
parent
d756108c85
commit
df2ec49ed3
2 changed files with 3 additions and 3 deletions
|
|
@ -33,7 +33,7 @@ export function Dropdown(props: DropdownProps) {
|
||||||
{customButton ? (
|
{customButton ? (
|
||||||
<Listbox.Button as={Fragment}>{customButton}</Listbox.Button>
|
<Listbox.Button as={Fragment}>{customButton}</Listbox.Button>
|
||||||
) : (
|
) : (
|
||||||
<Listbox.Button className="relative z-[101] w-full rounded-lg bg-dropdown-background hover:bg-dropdown-hoverBackground py-3 pl-3 pr-10 text-left text-white shadow-md focus:outline-none tabbable cursor-pointer">
|
<Listbox.Button className="relative z-[30] w-full rounded-lg bg-dropdown-background hover:bg-dropdown-hoverBackground py-3 pl-3 pr-10 text-left text-white shadow-md focus:outline-none tabbable cursor-pointer">
|
||||||
<span className="flex gap-4 items-center truncate">
|
<span className="flex gap-4 items-center truncate">
|
||||||
{props.selectedItem.leftIcon
|
{props.selectedItem.leftIcon
|
||||||
? props.selectedItem.leftIcon
|
? props.selectedItem.leftIcon
|
||||||
|
|
@ -51,7 +51,7 @@ export function Dropdown(props: DropdownProps) {
|
||||||
<Transition
|
<Transition
|
||||||
animation="slide-down"
|
animation="slide-down"
|
||||||
show={open}
|
show={open}
|
||||||
className={`absolute z-[102] min-w-[20px] w-fit max-h-60 overflow-auto rounded-lg bg-dropdown-background py-1 text-white shadow-lg ring-1 ring-black ring-opacity-5 scrollbar-thin scrollbar-track-background-secondary scrollbar-thumb-type-secondary focus:outline-none ${
|
className={`absolute z-[40] min-w-[20px] w-fit max-h-60 overflow-auto rounded-lg bg-dropdown-background py-1 text-white shadow-lg ring-1 ring-black ring-opacity-5 scrollbar-thin scrollbar-track-background-secondary scrollbar-thumb-type-secondary focus:outline-none ${
|
||||||
direction === "up" ? "bottom-full mb-4" : "top-full mt-1"
|
direction === "up" ? "bottom-full mb-4" : "top-full mt-1"
|
||||||
} ${props.side === "right" ? "right-0" : "left-0"}`}
|
} ${props.side === "right" ? "right-0" : "left-0"}`}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ function SettingsLayout(props: {
|
||||||
<WideContainer ultraWide classNames="overflow-visible">
|
<WideContainer ultraWide classNames="overflow-visible">
|
||||||
{/* Floating Search Bar - starts in sticky state */}
|
{/* Floating Search Bar - starts in sticky state */}
|
||||||
<div
|
<div
|
||||||
className="fixed left-0 right-0 z-[500]"
|
className="fixed left-0 right-0 z-50"
|
||||||
style={{
|
style={{
|
||||||
top: `${stickyOffset}px`,
|
top: `${stickyOffset}px`,
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue