Merge pull request #18 from jolavillette/fix/modal-dismiss-details-for-121

Web help dialog stays open, and the modal close button drifts on phones
This commit is contained in:
defnax 2026-08-16 13:39:47 +02:00 committed by GitHub
commit 57ccc4cade
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 2 deletions

View File

@ -33,6 +33,9 @@ const webhelpConfirm = () => {
{
onclick: () => {
window.open('https://retrosharedocs.readthedocs.io/en/latest/');
// The documentation opens in another tab; leaving this one behind
// it means coming back to a dialog that has nothing left to ask.
widget.closePopupMessage();
},
},
'Ok'

View File

@ -114,7 +114,7 @@ const navbar = () => {
? 'Connected to RetroShare Core'
: 'Connection Lost',
}),
m('span.webui-version', { style: { fontSize: '0.7em' } }, 'v144'),
m('span.webui-version', { style: { fontSize: '0.7em' } }, 'v145'),
m('i.fas.fa-sync-alt.refresh-icon', {
style: { cursor: 'pointer', fontSize: '0.8em' },
onclick: () => window.location.reload(true),
@ -236,7 +236,7 @@ const MobileStatus = () => {
m('small', statusbar.formatBytes(state.totalOut)),
]),
]),
m('.mobile-status-sheet__version', 'WebUI v144'),
m('.mobile-status-sheet__version', 'WebUI v145'),
])),
];
},

View File

@ -118,6 +118,15 @@
}
@media (max-width: 600px) {
// Every modal that gets a phone layout drops its padding from 1.5rem to 1rem
// -- copy confirmation, add friend, create identity, create forum, location
// details -- but the close button is positioned against the box, not the
// content, so it stayed 1.5rem from the edge and no longer lined up with
// anything. Corrected once here rather than in each of them.
.modal-content .close-btn {
right: 1rem;
}
.modal-content.location-details-modal {
width: calc(100% - 1rem);
height: max-content;