fix: mobile menu styling + nextcloud search/mtime/bambu hint
Deploy via Portainer / deploy (push) Successful in 1s

This commit is contained in:
Jo
2026-07-07 11:13:10 +02:00
parent 10fdeb3ebc
commit 4206a8934e
3 changed files with 89 additions and 15 deletions
+8 -1
View File
@@ -1970,7 +1970,14 @@ def _parse_propfind(xml_bytes, base_url, username, current_path):
items.append({'name': name, 'path': rel, 'is_dir': is_dir,
'size': size, 'mtime': mtime, 'ext': ext if not is_dir else 'dir'})
items.sort(key=lambda x: (0 if x['is_dir'] else 1, x['name'].lower()))
def _mtime_ts(m):
try:
from email.utils import parsedate_to_datetime
return parsedate_to_datetime(m).timestamp()
except Exception:
return 0
items.sort(key=lambda x: (0 if x['is_dir'] else 1, -_mtime_ts(x['mtime'])))
return items
@app.route('/api/nextcloud/browse')