mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
(search) Give the swipe hint on mobile a nicer finish
This commit is contained in:
parent
5134044530
commit
07a916a720
@ -85,7 +85,7 @@ if (window.matchMedia('(pointer: coarse)').matches) {
|
|||||||
|
|
||||||
// Add a floating panel to the bottom of the page to show a message when the filters are hidden
|
// Add a floating panel to the bottom of the page to show a message when the filters are hidden
|
||||||
const floatingPanel = document.createElement('div');
|
const floatingPanel = document.createElement('div');
|
||||||
floatingPanel.setAttribute('style', 'position: fixed; bottom: 0; left: 0; right: 0; background-color: #fff; padding: 1em; text-align: center; display: block; border-top: 1px solid #ccc; box-shadow: 0 0 -5px #eee;');
|
floatingPanel.setAttribute('style', 'position: fixed; bottom: 0; left: 0; right: 0; backdrop-filter: blur(10px); padding: 0.25em; text-align: center; display: block; border-top: 1px solid #ccc; box-shadow: 0 0 -5px #eee;');
|
||||||
floatingPanel.innerHTML = '← swipe left to open filters ←';
|
floatingPanel.innerHTML = '← swipe left to open filters ←';
|
||||||
document.body.appendChild(floatingPanel);
|
document.body.appendChild(floatingPanel);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user