Skip to content

[BUG] Short snackbar in tablets #4921

Closed

Description

@jesmrec

Snackbar in tablets does not take advantage of the screen width. As an example:

Screen_recording_20260706_103532.mp4

Snackbars width should adapt better

Samsung Galaxy Tab A8, Android 14

Activity

  1. DeepDiver1975 commented on Jul 6, 2026

    @DeepDiver1975
    Contributor

    Triage: not a code bug — this is default Material Snackbar behavior on large screens; changing it is a UX/design decision, not a fix.

    The app creates snackbars with a plain Snackbar.make(...) and no width/gravity/style customization:

    • owncloudApp/.../extensions/ActivityExt.kt:84 (showMessageInSnackbar), :98 (showSnackbarWithAction)
    • owncloudApp/.../extensions/FragmentExt.kt:56 (showMessageInSnackbar), :68 (showSnackbarWithAction)

    There is no snackbar style override in the app (no snackbarStyle/Widget.MaterialComponents.Snackbar theme entry). So on a tablet the Material component applies its own layout: a fixed max width, bottom-left aligned, not stretched to the screen edge. That's the intended Material spec for wide screens — snackbars are not meant to span full width.

    So "snackbars width should adapt better" is a preference against the framework default, not broken layout. Making them wider/centered on tablets is doable (custom width + Gravity on the snackbar's layoutParams, or a snackbar style), but it deliberately diverges from Material and is a design call for the maintainers/UX — not a bug fix.

    No code defect located; leaving as-is for a UX decision. Related but distinct from #4918 (edge-to-edge insets).

    🤖 Generated with Claude Code

  2. added a commit that references this issue on Oct 5, 2026
  3. added this to the 4.9 - Current milestone on Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions