Skip to content

fix: align app icon to top in compact message layout - #459

Open
feather2222 wants to merge 1 commit into
gotify:masterfrom
feather2222:fix-compact-icon-alignment
Open

feather2222 wants to merge 1 commit into
gotify:masterfrom
feather2222:fix-compact-icon-alignment

Conversation

@feather2222

Copy link
Copy Markdown

Fixes #456

Problem

In compact mode (Settings => Message layout => Compact), the application
icon is constrained to both the top and the bottom of the list item, which
vertically centers it. For long messages, the icon is scrolled out of view
and only becomes visible after scrolling to the vertical middle of the
message.

Change

Removed the app:layout_constraintBottom_toBottomOf="parent" constraint
from message_image in message_item_compact.xml, so the icon stays
aligned to the top of the item — matching the behavior requested in the
issue for both layouts.

Testing

  • Verified with ./gradlew :app:assembleDebug :app:lintDebug (both pass)
  • Long messages in compact mode now show the app icon at the top of the
    list item instead of vertically centered

In compact mode the application icon was constrained to both the top
and bottom of the list item, vertically centering it. With long
messages the icon scrolled out of view. Constrain it to the top only,
matching the normal layout behavior.

Fixes gotify#456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Application icon in compact mode

1 participant