Skip to content

Commit

Permalink
console: Fix modal styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaplots committed Sep 11, 2024
1 parent fa211dc commit 7b50257
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/webui/components/modal/modal.styl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
max-height: 80vh

+media-query-min($bp.sm)
min-width: 500px
min-width: 385px
max-width: 780px

+media-query($bp.sm)
Expand Down
7 changes: 6 additions & 1 deletion pkg/webui/components/qr-modal-button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ const QRModalButton = props => {
) : (
<>
<QR onChange={handleRead} />
<Message content={m.scanContinue} values={{ qrScanDoc: QrScanDoc }} component="span" />
<Message
content={m.scanContinue}
values={{ qrScanDoc: QrScanDoc }}
component="span"
className="c-text-neutral-light"
/>
</>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion pkg/webui/components/qr/input/video/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ const Video = props => {
data-test-id="webcam-feed"
/>
) : (
<Spinner center>
<Spinner center inline className="mb-cs-xl">
<Message className={style.msg} content={m.fetchingCamera} />
</Spinner>
)}
Expand Down
4 changes: 2 additions & 2 deletions pkg/webui/components/qr/qr.styl
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
width: 100%
max-height: 75vh

.msg
color: var(--c-bg-neutral-min)
+media-query($bp.xl)
max-height: 47vh
2 changes: 1 addition & 1 deletion pkg/webui/components/qr/require-permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const RequirePermission = props => {
if (!allow || videoError) {
return (
<div className={style.captureWrapper}>
<ErrorMessage style={{ color: '#fff' }} content={m.permissionDeniedError} />
<ErrorMessage content={m.permissionDeniedError} />
<br />
<Button
className="mt-cs-m"
Expand Down

0 comments on commit 7b50257

Please sign in to comment.