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

Commit

Permalink
Fix z index (#82)
Browse files Browse the repository at this point in the history
* Fix z index

* Fix prettier
  • Loading branch information
szebniok authored Apr 12, 2024
1 parent e5b0ec0 commit 2d237d8
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/components/AddFileComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const AddFileComponent: FC<Props> = ({ roomId, refetchIfNeeded, hasFileComponent
/>
</label>
<div
className={!hasFileComponent ? "" : "tooltip tooltip-info z-10"}
className={!hasFileComponent ? "" : "tooltip tooltip-info"}
data-tip={hasFileComponent ? "File component already exists in this room" : ""}
>
<button
Expand Down
2 changes: 1 addition & 1 deletion src/components/AddHlsComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const AddHlsComponent: FC<Props> = ({ roomId, refetchIfNeeded, isHLSSupported, h
</label>

<div
className={isHLSSupported && !hasHlsComponent ? "" : "tooltip tooltip-info z-10"}
className={isHLSSupported && !hasHlsComponent ? "" : "tooltip tooltip-info"}
data-tip={
isHLSSupported
? hasHlsComponent
Expand Down
5 changes: 1 addition & 4 deletions src/components/AudioVisualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ export const AudioVisualizer = ({ stream, muted = false, size = 46, height = 100
}, [stream]);

return (
<div
ref={canvasParentRef}
className="flex flex-row flex-nowrap justify-center border-4 z-10 rounded-md bg-gray-200"
>
<div ref={canvasParentRef} className="flex flex-row flex-nowrap justify-center border-4 rounded-md bg-gray-200">
<audio autoPlay={true} ref={loadAudio} muted={muted} />
<canvas ref={canvasRef} width={canvasWidth} height={height} />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/CloseButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type CloseButtonProps = {
};

export const CloseButton = ({ position = "top", onClick, descripiton = "REMOVE" }: CloseButtonProps) => (
<div className="indicator-item indicator-start z-10">
<div className="indicator-item indicator-start">
<div className={`tooltip tooltip-error ${position === "left" ? "tooltip-left" : ""} `} data-tip={descripiton}>
<button className="btn btn-circle btn-error btn-sm" onClick={onClick}>
<svg
Expand Down
4 changes: 2 additions & 2 deletions src/components/CopyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const copyTokenToClipboard = (text: string) => {

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

export const CopyLinkButton = ({ url }: { url: string }) => {
return (
<div className="tooltip tooltip-info z-10" data-tip="COPY LINK">
<div className="tooltip tooltip-info" data-tip="COPY LINK">
<button className="btn btn-sm mx-1 my-0" onClick={() => copyTokenToClipboard(url)}>
<GoLink size={24} />
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/GenerateQRCodeButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BsQrCodeScan } from "react-icons/bs";

export const GenerateQRCodeButton = ({ textToQR, description }: { textToQR: string; description: string }) => {
return (
<div className="tooltip tooltip-info z-10" data-tip="SHOW QR CODE">
<div className="tooltip tooltip-info" data-tip="SHOW QR CODE">
<label htmlFor={textToQR} className="btn btn-sm mx-1 my-0">
<BsQrCodeScan size={24} />
</label>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export const Client = ({
<div className="card-body p-4">
<div className="flex flex-row justify-between gap-2 items-center">
<h1 className="card-title relative">
<div className="z-10">
<div>
Peer: <span className="text-xs">{peerId}</span>
</div>
<div className="tooltip tooltip-top tooltip-primary absolute -ml-3 -mt-1 " data-tip={fullState?.status}>
Expand Down

0 comments on commit 2d237d8

Please sign in to comment.