Skip to content

Seeding Report adaptive Table columns problem #42

@braughtg

Description

@braughtg

The table generated in the SeedingReport it supposed to change the columns that are displayed based on the width of the window. That is, on narrower windows (e.g. mobile) some columns are hidden.

On a wide desktop browser window the columns should be:

image

On a narrower desktop browser window or on mobile the columns should be:

image

However observed behavior is:

  • Desktop browsers Chrome and Firefox running on MacOS and connecting to http://localhost always display all columns regardless of the browser window width.
  • Firefox browser running in the DevContainer and connecting to http://fd2_farmdata2 always displays the columns for a narrow/mobile window.

This seems to be an issue with the function reporting the window width that is used by the Seeding Report to determine the view to display. This is currently done at the end of the created() function in the Seeding Report file (farmdata2_modules/fd2_tabs/fd2_barn_kit/seedingReport.html).

NOTE: At present this code has been commented out. This means that the behavior cannot be seen in the running version of FarmData2. To attempt to see the behavior uncomment these lines. Keep in mind that this is "flaky" problem and does not occur on all machines and all browsers. You can increase the liklihood of observing it by switching the view in the dev-tools between desktop and mobile sizes.


Original issue by braughtg
Thursday Aug 17, 2023 at 19:17 GMT

Metadata

Metadata

Assignees

No one assigned

    Labels

    UI/UXUser Interface / User Experience ImprovementbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions