Add messages to mobile view (#1762)

This commit is contained in:
Tim Wilkinson 2024-12-10 20:55:30 -08:00 committed by GitHub
parent 528377e8b6
commit bc0284c779
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

@ -98,6 +98,13 @@
</div>
</div>
{% } else { %}
<div hx-get="u-messages" hx-trigger="every 300s [document.visibilityState === 'visible']">
{% if (messages.haveMessages() || (auth.isAdmin && messages.haveToDos())) { %}
<div id="messages">
{{_R("messages")}}
</div>
{% } %}
</div>
<div id="general">
{{_R("general")}}
</div>

View File

@ -53,6 +53,10 @@ body.mobile hr
{
flex-direction: column;
}
#m-main #messages
{
margin: 10px 10px 0 10px;
}
#m-main #location .location-image
{
width: 100%;