Skip to content

Commit

Permalink
Fix overflow on ID card (#1603)
Browse files Browse the repository at this point in the history
* add local bezel variable to inputs

* 🤖 Selenium screenshots auto-update

* 🤖 Selenium screenshots auto-update

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nicolas Mattia <nicolas.mattia@dfinity.org>
  • Loading branch information
3 people committed May 15, 2023
1 parent 31a8c6f commit 3bfc3d6
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 14 deletions.
Binary file modified screenshots/desktop/displayManage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/desktop/displayManageSingle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/desktop/displayUserNumber.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/desktop/promptCaptcha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/desktop/promptCaptchaReady.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/mobile/displayManage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/mobile/displayManageSingle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/mobile/displayUserNumber.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/mobile/promptCaptcha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/mobile/promptCaptchaReady.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 27 additions & 14 deletions src/frontend/src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1297,10 +1297,18 @@ a:hover,
}

.c-input {
--bezel-top: var(--rs-input-bezel-narrow);
--bezel-bottom: var(--rs-input-bezel-narrow);
--bezel-left: calc(3 * var(--rs-input-bezel));
--bezel-right: calc(3 * var(--rs-input-bezel));

--bezel: var(--bezel-top) var(--bezel-right) var(--bezel-bottom)
var(--bezel-left);

position: relative;
display: block;
width: 100%;
padding: var(--rs-input-bezel-narrow) calc(3 * var(--rs-input-bezel));
padding: var(--bezel);
margin-top: var(--rs-input-stack);
background: var(--rc-input);
color: var(--rc-onInput);
Expand Down Expand Up @@ -1348,14 +1356,14 @@ a:hover,
}

.c-input--spacious {
padding: calc(2 * var(--rs-input-bezel)) calc(3 * var(--rs-input-bezel))
calc(1.8 * var(--rs-input-bezel));
--bezel-top: calc(2 * var(--rs-input-bezel));
--bezel-bottom: calc(1.8 * var(--rs-input-bezel));
}

.c-input--vip {
--bezel-top: calc(1.2 * var(--rs-input-bezel));
--bezel-bottom: var(--rs-input-bezel);
font-size: 1.4em;
padding: calc(1.2 * var(--rs-input-bezel)) calc(3 * var(--rs-input-bezel))
var(--rs-input-bezel);
}

.c-input--vip::placeholder {
Expand All @@ -1369,21 +1377,24 @@ a:hover,
}

.c-input--textarea {
padding: calc(3 * var(--rs-input-bezel));
--bezel: calc(3 * var(--rs-input-bezel));
}

.c-input--textarea-narrow {
padding: calc(1.5 * var(--rs-input-bezel));
--bezel: calc(1.5 * var(--rs-input-bezel));
}

.c-input--recovery {
padding: calc(1.5 * var(--rs-input-bezel));
--bezel: calc(1.5 * var(--rs-input-bezel));

background-color: var(--rc-line);
}

.c-input--with-button {
padding: calc(1.5 * var(--rs-input-bezel)) calc(1.5 * var(--rs-input-bezel))
calc(3 * var(--rs-input-bezel));
--bezel-top: calc(1.5 * var(--rs-input-bezel));
--bezel-bottom: calc(3 * var(--rs-input-bezel));
--bezel-left: calc(1.5 * var(--rs-input-bezel));
--bezel-right: calc(1.5 * var(--rs-input-bezel));
}

.c-input--id {
Expand All @@ -1392,8 +1403,8 @@ a:hover,
.c-input--id__wrap {
min-height: 10em;
position: relative;
margin: calc(-4 * var(--rs-input-bezel)) calc(-3 * var(--rs-input-bezel));
padding: calc(4 * var(--rs-input-bezel));
margin: calc(-1 * var(--bezel));
padding: var(--bezel);
overflow: hidden;
border-radius: var(--rs-input-border-radius);
}
Expand All @@ -1404,7 +1415,8 @@ a:hover,
height: 100%;
width: 100%;
z-index: 0;
margin: calc(-4 * var(--rs-input-bezel));
top: 0;
left: 0;
}

.c-dapp-logo {
Expand Down Expand Up @@ -1433,7 +1445,8 @@ a:hover,

.c-input--icon {
position: relative;
padding-bottom: calc(4 * var(--rs-input-bezel));
--bezel-top: calc(4 * var(--rs-input-bezel));

margin-bottom: calc(var(--rs-input-stack) * 2);
}

Expand Down

0 comments on commit 3bfc3d6

Please sign in to comment.