text size adjustment and displaying none states

This commit is contained in:
Thomas Nahuel Rusiecki 2025-01-08 15:36:42 -03:00
parent 67461b3edd
commit e81c072bd4

View file

@ -34,13 +34,13 @@
<blockquote <blockquote
class="blockquote mt-2 p-2 bg-light fst-italic" class="blockquote mt-2 p-2 bg-light fst-italic"
contenteditable="true" contenteditable="true"
style="font-size: 1em!important" style="font-size: 1.2em!important"
data-note-id="{{ note.id }}" data-note-id="{{ note.id }}"
title="{% trans 'Click to edit this note' %}" title="{% trans 'Click to edit this note' %}"
oninput="toggleSaveLink(this)"> oninput="toggleSaveLink(this)">
{% else %} {% else %}
</div> </div>
<blockquote style="font-size: 1em!important" class="blockquote mt-2 p-2 fst-italic"> <blockquote style="font-size: 1.2em!important" class="blockquote mt-2 p-2 fst-italic">
{% endif %} {% endif %}
<p data-note-id="{{ note.id }}"> <p data-note-id="{{ note.id }}">
{{ note.description }} {{ note.description }}
@ -70,7 +70,7 @@
title="{% trans 'Save changes' %}" title="{% trans 'Save changes' %}"
onclick="submitUpdatedNote('{{ note.id }}'); return false;" onclick="submitUpdatedNote('{{ note.id }}'); return false;"
> >
<i class="fas fa-save"></i> <i class="fas fa-save px-1"></i>
</a> </a>
</form> </form>
@ -119,7 +119,9 @@
{% trans "Change state" %} {% trans "Change state" %}
{% if device_states %} {% if device_states %}
({{ device_states.0.state }}) ({{ device_states.0.state }})
{% endif %} {% else %}
( {% trans "None" %} )
{% endif %}
</a> </a>
<ul class="dropdown-menu" aria-labelledby="addStateDropdown" style="width: 100%;"> <ul class="dropdown-menu" aria-labelledby="addStateDropdown" style="width: 100%;">
{% for state in state_definitions %} {% for state in state_definitions %}