diff --git a/public/assets/css/base.css b/public/assets/css/base.css index 19e2cded82..fb7d7adbbc 100644 --- a/public/assets/css/base.css +++ b/public/assets/css/base.css @@ -260,6 +260,7 @@ hr { .h-entry { margin-top: var(--unit-size); } + .notes hr { margin-top: 5px; } @@ -270,14 +271,39 @@ hr { .h-entry .embed header { padding: var(--unit-size); } + .h-entry .embed .p-summary { padding: var(--unit-size); } + .h-entry, .note { + display: flex; background-color: var(--translucent); border-radius: var(--unit-size); } +.note-wrapper { + width: 100%; + height: available; +} + +.note-sidebar { + padding: var(--unit-size); +} +.note-sidebar * { + display: flex; + flex-direction: column; + margin-left: auto; + margin-right: auto; + max-height: 100%; +} + +.note-sidebar .avatar { + width: 3rem; + height: 3rem; + background: unset; + margin-bottom: var(--unit-size); +} .h-entry .replies .h-entry { background-color: unset; @@ -308,18 +334,9 @@ hr { align-self: center; } -.note-author .avatar { - width: auto; - height: var(--main-size); - border-radius: var(--unit-size); - margin-right: 5px; -} - .note-actions { display: flex; vertical-align: middle; - height: 100%; - max-height: 100%; } .button-container { @@ -328,10 +345,10 @@ hr { background-repeat: no-repeat !important; - width: 1em !important; - height: 1em !important; + width: var(--main-size) !important; + height: var(--main-size) !important; - margin-left: 5px; + margin-top: var(--unit-size); text-indent: -9999em; } @@ -373,6 +390,7 @@ hr { border-top: unset; border-radius: 0 0 var(--unit-size) var(--unit-size); + height: max-content; padding: var(--small-size); } diff --git a/templates/note/view.html.twig b/templates/note/view.html.twig index b768f21ea7..f0acde2bd4 100644 --- a/templates/note/view.html.twig +++ b/templates/note/view.html.twig @@ -1,24 +1,13 @@
{% set nickname = note.getActorNickname() %} -
- - {# TODO: this should link to the note's user profile? #} - - {# Microformat's h-card properties indicates a face icon is a "u-logo" #} - - {{ nickname }} - - - {% set reply_to = note.getReplyToNickname() %} - {% if reply_to is not null and not skip_reply_to is defined %} - {% trans with {'%name%': reply_to} %} in reply to %name% {% endtrans %} - {% endif %} + + +
+ + {# TODO: this should link to the note's user profile? #} +
+ + {# Microformat's h-card properties indicates a face icon is a "u-logo" #} + {{ nickname }} + + + {% set reply_to = note.getReplyToNickname() %} + {% if reply_to is not null and not skip_reply_to is defined %} + {% trans with {'%name%': reply_to} %} in reply to %name% {% endtrans %} {% endif %}
- {% endif %} -
- - - {% if replies is defined and replies is not empty %} -
- {% for conversation in replies %} - {% include '/note/view.html.twig' with {'note': conversation['note'], 'skip_reply_to': true, 'have_user': have_user, 'replies': conversation['replies']} only %} - {% endfor %}
- {% endif %} - {% if reply_to is not empty %} -
- {% endif %}
diff --git a/templates/settings/base.html.twig b/templates/settings/base.html.twig index f8fe3eab9b..b1064668dc 100644 --- a/templates/settings/base.html.twig +++ b/templates/settings/base.html.twig @@ -17,60 +17,54 @@ {% endblock %} {% block body %} -