Skip to content

Commit

Permalink
fix issue with overlap for for webkit based browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Jul 19, 2024
1 parent e3c5a63 commit 98af9ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Components/CameraFeed/AssetBedSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default function CameraPresetSelect(props: Props) {

return (
<ButtonV2
key={option.id}
variant={selected ? "primary" : "secondary"}
className="min-w-16 max-w-40 text-ellipsis text-sm"
onClick={() => props.onChange?.(option)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import useOperateCamera, {
PTZPayload,
} from "../../CameraFeed/useOperateCamera";
import request from "../../../Utils/request/request";
import { isIOS } from "../../../Utils/utils";
import { classNames, isIOS } from "../../../Utils/utils";
import ConfirmDialog from "../../Common/ConfirmDialog";
import useBreakpoints from "../../../Common/hooks/useBreakpoints";
import { Warn } from "../../../Utils/Notifications";
Expand Down Expand Up @@ -124,7 +124,13 @@ export const ConsultationFeedTab = (props: ConsultationTabProps) => {
onConfirm={handleUpdatePreset}
/>

<div ref={divRef} className="-mx-3 lg:-mb-2">
<div
ref={divRef}
className={classNames(
"-mx-3 lg:-mb-2",
isIOS && "mt-8", // For some reason iOS based browser alone seems to be needing this.
)}
>
<CameraFeed
key={key}
asset={asset}
Expand Down

0 comments on commit 98af9ba

Please sign in to comment.