fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] "Added to Firefox Nightly home!" snackbar is incorrectly displayed on tablets in landscape mode

Open abodea opened this issue 6 years ago • 6 comments

Steps to reproduce

  1. Launch Fenix.
  2. Rotate the device in landscape mode.
  3. Access any website.
  4. Tap on 3 dot menu and then Add to top sites.

Expected behavior

The Added to Firefox Nightly home! snackbar should be correctly displayed.

Actual behavior

The Added to Firefox Nightly home! snackbar is incorrectly displayed in landscape, as the word home! is on a second row.

Device information

  • Android device: Samsung Galaxy Tab A (Android 9).
  • Fenix version: Nightly from 2/12.

Notes

On the mobile devices, the snackbar is displayed correctly in landscape.

Screenshot_20200212-115001_Firefox Nightly

┆Issue is synchronized with this Jira Task

abodea avatar Feb 12 '20 09:02 abodea

Hello, I couldn't reproduce this with Samsung Galaxy Tab A (Android 8) or Samsung Galaxy S8, please see the picture below:

device-2020-02-13-122337

andlzr avatar Feb 13 '20 10:02 andlzr

Hi, I can reproduce the issue with Google Pixel C (Android 8.0.0) on Firefox Beta Preview 4.0.0-beta.1 and Firefox Preview Nightly.

  • Affected snack bar/notification on Firefox Beta: "Open Link in new private tab" Screenshot_20200219-184803

Note: The word "opened" is displayed on the second row.

Diana-Rus avatar Feb 19 '20 17:02 Diana-Rus

This is a side effect of using Autosizing on a TextView with more than one line and width other than a fixed one. IMO this is an acceptable side-effect that does not occur very often. The alternatives would be either setting a fixed size for the SnackBar text or not allowing multiple rows (this might result in the text not being fully shown).

Leaving this to UX decision.

mcarare avatar Oct 19 '20 11:10 mcarare

Thanks for the context. This seems like an edge case, and doesn't prevent people from using the app, so i'm going to drop the priority.

liuche avatar Oct 22 '20 15:10 liuche

If this is an edge case and changing it would affect the optimal experience for the rest, then let's leave it as is.

apbitner avatar Oct 30 '20 19:10 apbitner

See: https://github.com/mozilla-mobile/fenix/issues/17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 29 '21 01:04 stale[bot]