Skip to content

Commit 3237b3a

Browse files
committed
Visual Bugfix
1 parent 3f338af commit 3237b3a

File tree

5 files changed

+87
-257
lines changed

5 files changed

+87
-257
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quasar",
3-
"version": "5.4.28",
3+
"version": "5.4.31",
44
"description": "Browser Wallet for Stellaris and Stellaris based chains",
55
"license": "MIT",
66
"repository": {

src/pages/Background/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ async function handleConnectWallet(origin, hostname, requestedAddress = null) {
166166
origin,
167167
hostname,
168168
title: 'Connect Wallet',
169-
message: requestedAddress
170-
? `${hostname} wants to connect to wallet with address: ${requestedAddress}`
169+
message: requestedAddress
170+
? `${hostname} wants to connect to wallet with address: ${requestedAddress}`
171171
: `${hostname} wants to connect to your wallet`,
172172
requestedAddress
173173
});

src/pages/Popup/RequestDialog.css

Lines changed: 62 additions & 244 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
overflow: hidden;
2424
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
2525
animation: slideIn 0.3s ease-out;
26+
display: flex;
27+
flex-direction: column;
2628
}
2729

2830
@keyframes slideIn {
@@ -44,6 +46,7 @@
4446
padding: 16px 20px;
4547
border-bottom: 1px solid #333;
4648
background: #1a1a1a;
49+
flex-shrink: 0;
4750
}
4851

4952
.request-header h3 {
@@ -71,6 +74,29 @@
7174
.request-content {
7275
padding: 20px;
7376
color: #ffffff;
77+
flex: 1;
78+
overflow-y: auto;
79+
min-height: 0;
80+
}
81+
82+
/* Custom scrollbar styling */
83+
.request-content::-webkit-scrollbar {
84+
width: 8px;
85+
}
86+
87+
.request-content::-webkit-scrollbar-track {
88+
background: #1a1a1a;
89+
border-radius: 4px;
90+
}
91+
92+
.request-content::-webkit-scrollbar-thumb {
93+
background: #444;
94+
border-radius: 4px;
95+
border: 1px solid #333;
96+
}
97+
98+
.request-content::-webkit-scrollbar-thumb:hover {
99+
background: #555;
74100
}
75101

76102
.request-site {
@@ -210,9 +236,44 @@
210236
}
211237

212238
.wallet-checkbox input[type="radio"] {
239+
appearance: none;
240+
-webkit-appearance: none;
241+
-moz-appearance: none;
242+
width: 18px;
243+
height: 18px;
244+
border: 2px solid #555;
245+
border-radius: 50%;
246+
background: #1a1a1a;
213247
margin: 0;
214248
cursor: pointer;
215-
accent-color: #007acc;
249+
position: relative;
250+
transition: all 0.2s ease;
251+
}
252+
253+
.wallet-checkbox input[type="radio"]:hover {
254+
border-color: #007acc;
255+
}
256+
257+
.wallet-checkbox input[type="radio"]:checked {
258+
border-color: #007acc;
259+
background: #007acc;
260+
}
261+
262+
.wallet-checkbox input[type="radio"]:checked::after {
263+
content: '';
264+
position: absolute;
265+
top: 50%;
266+
left: 50%;
267+
transform: translate(-50%, -50%);
268+
width: 6px;
269+
height: 6px;
270+
border-radius: 50%;
271+
background: #ffffff;
272+
}
273+
274+
.wallet-checkbox input[type="radio"]:focus {
275+
outline: none;
276+
box-shadow: 0 0 5px rgba(0, 122, 204, 0.5);
216277
}
217278

218279
.wallet-info {
@@ -294,252 +355,9 @@
294355
padding: 16px 20px;
295356
border-top: 1px solid #333;
296357
background: #1a1a1a;
297-
}
298-
299-
.error-message {
300-
background: #ff6b6b20;
301-
border: 1px solid #ff6b6b;
302-
border-radius: 6px;
303-
padding: 8px 12px;
304-
color: #ff6b6b;
305-
font-size: 13px;
306-
text-align: center;
307-
}
308-
309-
.request-buttons {
310-
display: flex;
311-
gap: 12px;
312-
}
313-
314-
.request-buttons .btn {
315-
flex: 1;
316-
}
317-
318-
.btn {
319-
padding: 12px 16px;
320-
border: none;
321-
border-radius: 8px;
322-
font-size: 14px;
323-
font-weight: 600;
324-
cursor: pointer;
325-
transition: all 0.2s ease;
326-
display: flex;
327-
align-items: center;
328-
justify-content: center;
329-
gap: 6px;
330-
}
331-
332-
.btn:disabled {
333-
opacity: 0.6;
334-
cursor: not-allowed;
335-
transform: none !important;
336-
box-shadow: none !important;
337-
}
338-
339-
.btn-primary {
340-
background: #0066ff;
341-
color: #ffffff;
342-
}
343-
344-
.btn-primary:hover {
345-
background: #0052cc;
346-
transform: translateY(-1px);
347-
box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
348-
}
349-
350-
.btn-secondary {
351-
background: #333;
352-
color: #ffffff;
353-
border: 1px solid #555;
354-
}
355-
356-
.btn-secondary:hover {
357-
background: #444;
358-
transform: translateY(-1px);
359-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
360-
}
361-
362-
.request-loading,
363-
.request-error {
364-
padding: 40px 20px;
365-
text-align: center;
366-
color: #cccccc;
367-
}
368-
369-
.spinner {
370-
width: 24px;
371-
height: 24px;
372-
border: 2px solid #333;
373-
border-top: 2px solid #0066ff;
374-
border-radius: 50%;
375-
animation: spin 1s linear infinite;
376-
margin: 0 auto 12px;
377-
}
378-
379-
@keyframes spin {
380-
0% {
381-
transform: rotate(0deg);
382-
}
383-
384-
100% {
385-
transform: rotate(360deg);
386-
}
387-
}
388-
389-
.spinner-small {
390-
width: 16px;
391-
height: 16px;
392-
border: 2px solid #ffffff40;
393-
border-top: 2px solid #ffffff;
394-
border-radius: 50%;
395-
animation: spin 1s linear infinite;
396-
}
397-
398-
.request-error p {
399-
color: #ff6b6b;
400-
margin-bottom: 16px;
401-
}
402-
403-
.wallet-selector {
404-
background: #1a1a1a;
405-
border: 1px solid #444;
406-
border-radius: 6px;
407-
color: #ffffff;
408-
padding: 8px 12px;
409-
font-size: 13px;
410-
width: 100%;
411-
cursor: pointer;
412-
}
413-
414-
.wallet-selector:focus {
415-
outline: none;
416-
border-color: #0066ff;
417-
}
418-
419-
.connect-wallets {
420-
background: #252525;
421-
border: 1px solid #333;
422-
border-radius: 8px;
423-
padding: 16px;
424-
margin-bottom: 20px;
425-
}
426-
427-
.request-dialog {
428-
background: #1a1a1a;
429-
border: 1px solid #333;
430-
border-radius: 12px;
431-
width: 90%;
432-
max-width: 400px;
433-
max-height: 80vh;
434-
overflow: hidden;
435-
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
436-
animation: slideIn 0.3s ease-out;
437-
}
438-
439-
@keyframes slideIn {
440-
from {
441-
opacity: 0;
442-
transform: translateY(-20px) scale(0.95);
443-
}
444-
445-
to {
446-
opacity: 1;
447-
transform: translateY(0) scale(1);
448-
}
449-
}
450-
451-
.request-header {
452-
display: flex;
453-
align-items: center;
454-
justify-content: space-between;
455-
padding: 16px 20px;
456-
border-bottom: 1px solid #333;
457-
background: #1a1a1a;
458-
}
459-
460-
.request-header h3 {
461-
margin: 0;
462-
color: #ffffff;
463-
font-size: 16px;
464-
font-weight: 600;
465-
}
466-
467-
.close-btn {
468-
background: none;
469-
border: none;
470-
color: #888;
471-
cursor: pointer;
472-
padding: 4px;
473-
border-radius: 4px;
474-
transition: all 0.2s ease;
475-
}
476-
477-
.close-btn:hover {
478-
color: #ffffff;
479-
background: #333;
480-
}
481-
482-
.request-content {
483-
padding: 20px;
484-
color: #ffffff;
485-
}
486-
487-
.transaction-details,
488-
.message-details {
489-
background: #252525;
490-
border: 1px solid #333;
491-
border-radius: 8px;
492-
padding: 16px;
493-
margin-bottom: 20px;
494-
}
495-
496-
.detail-row {
497-
display: flex;
498-
justify-content: space-between;
499-
align-items: flex-start;
500-
gap: 12px;
501-
margin-bottom: 12px;
502-
}
503-
504-
.detail-row:last-child {
505-
margin-bottom: 0;
506-
}
507-
508-
.detail-row .label {
509-
color: #888;
510-
font-size: 13px;
511-
min-width: 60px;
512358
flex-shrink: 0;
513359
}
514360

515-
.detail-row .value {
516-
color: #ffffff;
517-
font-size: 13px;
518-
font-weight: 500;
519-
text-align: right;
520-
word-break: break-all;
521-
}
522-
523-
.message-text {
524-
font-family: monospace;
525-
background: #1a1a1a;
526-
padding: 8px;
527-
border-radius: 4px;
528-
font-size: 12px;
529-
max-width: 200px;
530-
overflow: hidden;
531-
text-overflow: ellipsis;
532-
}
533-
534-
.request-actions {
535-
display: flex;
536-
flex-direction: column;
537-
gap: 12px;
538-
padding: 16px 20px;
539-
border-top: 1px solid #333;
540-
background: #1a1a1a;
541-
}
542-
543361
.error-message {
544362
background: #ff6b6b20;
545363
border: 1px solid #ff6b6b;

src/pages/Popup/RequestDialog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ export const RequestDialog: React.FC<RequestDialogProps> = ({
4242
if (requestData.type === 'CONNECT' || requestData.type === 'GET_WALLET_DATA') {
4343
// If a specific address is requested, find that wallet
4444
if (requestData.requestedAddress) {
45-
const requestedWallet = wallets.find(wallet =>
46-
wallet.address === requestData.requestedAddress ||
45+
const requestedWallet = wallets.find(wallet =>
46+
wallet.address === requestData.requestedAddress ||
4747
wallet.address?.toLowerCase() === requestData.requestedAddress?.toLowerCase()
4848
);
49-
49+
5050
if (requestedWallet) {
5151
setSelectedWalletForRequest(requestedWallet);
5252
} else {

0 commit comments

Comments
 (0)