Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forms in view mode do not scale well on small screen resolutions #2140

Open
bobbadshy opened this issue May 4, 2024 · 1 comment
Open

Forms in view mode do not scale well on small screen resolutions #2140

bobbadshy opened this issue May 4, 2024 · 1 comment
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working design Related to the design

Comments

@bobbadshy
Copy link

Please use the 👍 reaction to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug
Forms in view mode unnecessarily use more then 100% screen width on small horizontal resolutions.

To Reproduce
Steps to reproduce the behavior:

  1. Create a test form with entry fields
  2. Open in view mode on smartphone or in Chrome with DevTools and low horizontal screen resolution chosen in device mode
  3. Header and form element take up more than available screen width due to extra margins not being included in width calculation.

Expected behavior
Forms in view mode should be displayed without horizontal scrolling even on low horizontal screen resolutions like those on smartphones.

Screenshots
Takes up more than available screen width:
image

With a Custom CSS workaround applied to force down the element width to 90% and remove margin:
image

System info:
2024-05-04.md

Nextcloud (please complete the following information):

  • Nextcloud-Version: 29.0.0.19
  • Forms-Version: 4.2.3

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Browser log

Open your console, reload your page and/or do the action leading to this issue and copy/paste the log in this thread.
How to access your browser console (Click to expand)

Chrome

  • Press either CTRL + SHIFT + J to open the “console” tab of the Developer Tools.
  • Alternative method:
    1. Press either CTRL + SHIFT + I or F12 to open the Developer Tools.
    2. Click the “console” tab.

Safari

  • Press CMD + ALT + I to open the Web Inspector.
  • See Chrome’s step 2. (Chrome and Safari have pretty much identical dev tools.)

IE9

  1. Press F12 to open the developer tools.
  2. Click the “console” tab.

Firefox

  • Press CTRL + SHIFT + K to open the Web console (COMMAND + SHIFT + K on Macs).
  • or, if Firebug is installed (recommended):
    1. Press F12 to open Firebug.
    2. Click on the “console” tab.

Opera

  1. Press CTRL + SHIFT + I to open Dragonfly.
  2. Click on the “console” tab.

Additional context
Add any other context about the problem here.

@bobbadshy bobbadshy added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels May 4, 2024
@Chartman123 Chartman123 added 1. to develop Accepted and waiting to be taken care of design Related to the design and removed 0. Needs triage Pending approval or rejection. This issue is pending approval. labels May 5, 2024
@tmlmt
Copy link

tmlmt commented May 7, 2024

I posted a similar but different issue in #2145: I can't edit forms on my mobile device.

This issue made me realize when I switch the device to landscape mode, things work (for issue 2145), but not in portrait mode.

There seems to be generally speaking quite some responsiveness issues on mobile devices? (editing, filling out, viewing, ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working design Related to the design
Projects
None yet
Development

No branches or pull requests

3 participants