Skip to content

Commit 40f36a2

Browse files
committed
feat(yivi): enable minimal mode on all QR code sessions
Passes minimal: true to YiviCore so yivi-web renders only the bare QR code (yivi-web-minimal) without its full form chrome. Also updates the IrmaSessionModal CSS overrides from the old irma-web-* class names to the new yivi-web-qr-code selector used by the SVG-based QR renderer.
1 parent 64d8e97 commit 40f36a2

3 files changed

Lines changed: 3 additions & 12 deletions

File tree

client/src/components/IrmaSessionModal/IrmaSessionModal.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,9 @@ const IrmaWebElement = styled.div`
118118
min-height: ${() => (isMobile() ? '250' : '300')}px;
119119
background-color: transparent;
120120
121-
& .irma-web-header {
122-
display: none;
123-
}
124-
& .irma-web-content {
125-
margin: 0;
126-
& .irma-web-waiting-for-user-animation {
127-
}
128-
}
129-
& .irma-web-qr-canvas {
121+
& .yivi-web-qr-code {
130122
width: ${() => (isMobile() ? '250' : '300')}px !important;
131123
height: ${() => (isMobile() ? '250' : '300')}px !important;
132-
& + p {
133-
display: none;
134-
}
135124
}
136125
137126
p,

client/src/services/createIrmaSession.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ const createIrmaSession = (
110110
callBackMapping,
111111
alwaysShowQRCode,
112112
language,
113+
minimal: true,
113114
session: {
114115
url: `/${dataType}${queryString}`,
115116

client/src/services/createIrmaVoteSession.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const createIrmaVoteSession = async (
7979
debugging: true,
8080
element: `#${HOLDER_ELEMENT_ID}`,
8181
callBackMapping,
82+
minimal: true,
8283
session: {
8384
url: `demos/vote`,
8485

0 commit comments

Comments
 (0)