mirror of
https://github.com/RetroShare/RSNewWebUI.git
synced 2026-09-14 11:05:47 +05:00
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:
commit
57ccc4cade
@ -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'
|
||||
|
||||
@ -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'),
|
||||
])),
|
||||
];
|
||||
},
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user