Mirror and zoom the scan preview, strengthen barcode decoding, save failed captures
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
b5defb4e4f
commit
308c0e1ed3
10 files changed
+510
-152
No files matched your search
+3
-2
@@ -42,12 +42,13 @@ label small { display: block; margin-top: 4px; }
|
||||
@media (max-width: 760px) { .scan { grid-template-columns: 1fr; } main { padding: 14px 12px; } }
|
||||
.video-wrap { position: relative; width: 100%; background: #0b0c0e; border-radius: 12px; overflow: hidden; border: 3px solid var(--line); transition: border-color .15s; }
|
||||
.video-wrap.flash { border-color: var(--flash); transition: none; }
|
||||
video { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||||
video { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; }
|
||||
.res { margin: -6px 0 8px; }
|
||||
.video-empty { position: absolute; inset: 0; display: grid; place-items: center; }
|
||||
button.big { font-size: 1.1rem; padding: 12px 26px; }
|
||||
.target { position: absolute; border: 2px solid rgba(255,255,255,.92); border-radius: 10px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.38); pointer-events: none; transition: border-color .15s; }
|
||||
.video-wrap.flash .target { border-color: var(--flash); box-shadow: 0 0 0 100vmax rgba(0,0,0,.38), 0 0 0 3px var(--flash); }
|
||||
.hint { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); max-width: 92%; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: .9rem; white-space: nowrap; pointer-events: none; }
|
||||
.hint { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); max-width: 92%; padding: 4px 12px; border-radius: 14px; background: rgba(0,0,0,.72); color: #fff; font-size: .9rem; text-align: center; width: max-content; pointer-events: none; }
|
||||
.scanning { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: .82rem; pointer-events: none; }
|
||||
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #52c586; animation: pulse 1.2s ease-in-out infinite; }
|
||||
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
|
||||
|
||||
Reference in new issue
Block a user