feat: improve VoidWallet warning visibility on all devices (#3428)

This commit is contained in:
Ben Weeks
2025-10-27 10:12:37 +02:00
committed by GitHub
parent 87f25ea715
commit f794373d30
3 changed files with 22 additions and 9 deletions
+17 -8
View File
@@ -92,6 +92,22 @@
<div id="vue">
<q-layout view="hHh lpR lfr" v-cloak>
<q-header bordered class="bg-marginal-bg">
<!-- VoidWallet Warning Banner -->
{% if VOIDWALLET %}
<q-banner v-if="g.user" class="bg-warning text-white" dense>
<template v-slot:avatar>
<q-icon name="warning" color="white" />
</template>
<a
v-if="g.user && (g.user.super_user || g.user.admin)"
href="/admin"
style="color: white; text-decoration: underline; cursor: pointer"
v-text="$t('voidwallet_active_admin')"
></a>
<span v-else v-text="$t('voidwallet_active_user')"></span>
</q-banner>
{% endif %}
<q-toolbar>
{% block drawer_toggle %}
<q-btn
@@ -115,14 +131,7 @@
<q-badge v-else-if="g.user && g.user.admin">Admin User</q-badge>
{% endblock %}
</q-toolbar-title>
{% block beta %} {% if VOIDWALLET %}
<q-badge
v-text="$t('voidwallet_active')"
color="red"
class="q-mr-md gt-md"
>
</q-badge>
{%endif%} {% if LNBITS_CUSTOM_BADGE is not none and
{% block beta %} {% if LNBITS_CUSTOM_BADGE is not none and
LNBITS_CUSTOM_BADGE != "" %}
<q-badge
v-show="$q.screen.gt.sm"