Skip to content

Commit 8ba9603

Browse files
committed
Revert "style(qr-scanner): improve layout and responsiveness of scanner component"
This reverts commit 4b7611d.
1 parent b8eaacd commit 8ba9603

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

src/components/QRScanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ export function QRScanner({
486486
aria-label={t('accessibility.scannerRegion')}
487487
>
488488
{/* Scanner element */}
489-
<div id={SCANNER_ELEMENT_ID} className="w-full h-full min-h-[300px] overflow-hidden" />
489+
<div id={SCANNER_ELEMENT_ID} className="w-full h-full min-h-[300px]" />
490490

491491
{/* Scanning frame overlay */}
492492
<div className="absolute inset-0 pointer-events-none z-10">

src/index.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@
202202
);
203203
color: hsl(var(--foreground));
204204
min-height: 100vh;
205-
overflow-x: hidden;
206205
font-feature-settings: "cv02", "cv03", "cv04", "cv11";
207206
transition: background 0.3s ease, color 0.3s ease;
208207
}
@@ -481,16 +480,6 @@
481480
border-radius: var(--radius);
482481
overflow: hidden;
483482
background: hsl(var(--background));
484-
max-width: 100%;
485-
}
486-
487-
.qr-scanner-container video,
488-
.qr-scanner-container img,
489-
.qr-scanner-container canvas {
490-
max-width: 100% !important;
491-
width: 100% !important;
492-
height: auto !important;
493-
object-fit: cover;
494483
}
495484

496485
.qr-scanner-container::before {

0 commit comments

Comments
 (0)