Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 2d237d8

Browse files
authored
Fix z index (#82)
* Fix z index * Fix prettier
1 parent e5b0ec0 commit 2d237d8

7 files changed

+8
-11
lines changed

src/components/AddFileComponent.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const AddFileComponent: FC<Props> = ({ roomId, refetchIfNeeded, hasFileComponent
3939
/>
4040
</label>
4141
<div
42-
className={!hasFileComponent ? "" : "tooltip tooltip-info z-10"}
42+
className={!hasFileComponent ? "" : "tooltip tooltip-info"}
4343
data-tip={hasFileComponent ? "File component already exists in this room" : ""}
4444
>
4545
<button

src/components/AddHlsComponent.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const AddHlsComponent: FC<Props> = ({ roomId, refetchIfNeeded, isHLSSupported, h
7676
</label>
7777

7878
<div
79-
className={isHLSSupported && !hasHlsComponent ? "" : "tooltip tooltip-info z-10"}
79+
className={isHLSSupported && !hasHlsComponent ? "" : "tooltip tooltip-info"}
8080
data-tip={
8181
isHLSSupported
8282
? hasHlsComponent

src/components/AudioVisualizer.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ export const AudioVisualizer = ({ stream, muted = false, size = 46, height = 100
7272
}, [stream]);
7373

7474
return (
75-
<div
76-
ref={canvasParentRef}
77-
className="flex flex-row flex-nowrap justify-center border-4 z-10 rounded-md bg-gray-200"
78-
>
75+
<div ref={canvasParentRef} className="flex flex-row flex-nowrap justify-center border-4 rounded-md bg-gray-200">
7976
<audio autoPlay={true} ref={loadAudio} muted={muted} />
8077
<canvas ref={canvasRef} width={canvasWidth} height={height} />
8178
</div>

src/components/CloseButton.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type CloseButtonProps = {
55
};
66

77
export const CloseButton = ({ position = "top", onClick, descripiton = "REMOVE" }: CloseButtonProps) => (
8-
<div className="indicator-item indicator-start z-10">
8+
<div className="indicator-item indicator-start">
99
<div className={`tooltip tooltip-error ${position === "left" ? "tooltip-left" : ""} `} data-tip={descripiton}>
1010
<button className="btn btn-circle btn-error btn-sm" onClick={onClick}>
1111
<svg

src/components/CopyButton.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const copyTokenToClipboard = (text: string) => {
2626

2727
export const CopyToClipboardButton = ({ text, tooltipText }: { text: string; tooltipText?: string }) => {
2828
return (
29-
<div className="tooltip tooltip-info z-10" data-tip={tooltipText ?? "COPY"}>
29+
<div className="tooltip tooltip-info" data-tip={tooltipText ?? "COPY"}>
3030
<button className="btn btn-sm mx-1 my-0" onClick={() => copyTokenToClipboard(text)}>
3131
<GoCopy size={24} />
3232
</button>
@@ -36,7 +36,7 @@ export const CopyToClipboardButton = ({ text, tooltipText }: { text: string; too
3636

3737
export const CopyLinkButton = ({ url }: { url: string }) => {
3838
return (
39-
<div className="tooltip tooltip-info z-10" data-tip="COPY LINK">
39+
<div className="tooltip tooltip-info" data-tip="COPY LINK">
4040
<button className="btn btn-sm mx-1 my-0" onClick={() => copyTokenToClipboard(url)}>
4141
<GoLink size={24} />
4242
</button>

src/components/GenerateQRCodeButton.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { BsQrCodeScan } from "react-icons/bs";
33

44
export const GenerateQRCodeButton = ({ textToQR, description }: { textToQR: string; description: string }) => {
55
return (
6-
<div className="tooltip tooltip-info z-10" data-tip="SHOW QR CODE">
6+
<div className="tooltip tooltip-info" data-tip="SHOW QR CODE">
77
<label htmlFor={textToQR} className="btn btn-sm mx-1 my-0">
88
<BsQrCodeScan size={24} />
99
</label>

src/containers/Client.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export const Client = ({
284284
<div className="card-body p-4">
285285
<div className="flex flex-row justify-between gap-2 items-center">
286286
<h1 className="card-title relative">
287-
<div className="z-10">
287+
<div>
288288
Peer: <span className="text-xs">{peerId}</span>
289289
</div>
290290
<div className="tooltip tooltip-top tooltip-primary absolute -ml-3 -mt-1 " data-tip={fullState?.status}>

0 commit comments

Comments
 (0)