In workspace-form the text of the modal content is not visible completely below 768px screen.

Created on 19 December 2023, about 1 year ago
Updated 18 March 2024, 9 months ago

Problem/Motivation

I was exploring the workspaces module trying to switch multiple workspaces I saw that below the 768px screen when we click on any workspace the modal content text is not completely visible it is hidden because some inline CSS is coming which is - max-height: 0px;

Steps to reproduce

  1. Enable the workspace module.
  2. Switch the screen below 768px
  3. Click on workspace to the right side.
  4. See the modal content text.

Proposed resolution

Unset the max-height - max-height: unset;

Merge request link

https://git.drupalcode.org/project/drupal/-/merge_requests/6019/

Remaining tasks

Commit

User interface changes

Before

After

API changes

None

Data model changes

None

Release notes snippet

None

๐Ÿ› Bug report
Status

Fixed

Version

10.2 โœจ

Component
Claroย  โ†’

Last updated 2 days ago

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @shweta__sharma
  • Assigned to samir_shukla
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia samir_shukla bareilly

    Hi, working on the issue.

  • Issue was unassigned.
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia samir_shukla bareilly
  • First commit to issue fork.
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia swatidhurandhar

    swatidhurandhar โ†’ made their first commit to this issueโ€™s fork.

  • Status changed to Needs review 12 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia swatidhurandhar

    I have created a MR where I have set the max-height of UI dialog content for workspace module.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Sandeep_k New Delhi

    @swatidhurandhar I have tested the shared patch MR !6019 mergeable I was able to reproduce this issue but was unable to apply the shared patch. Sharing the error here which I was getting while applying the patch.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia swatidhurandhar

    @Sandeep_k It is warning not errors, the patch is adding the code.

  • Hi @swatidhurandhar

    I tested your Merge request! 6019 and it fixed the issue but there are some warnings you need to check. I think your editor using tab space.

    core/6019.patch.txt:36: tab in indent.
    		.ui-dialog {
    core/6019.patch.txt:37: tab in indent.
    			.ui-dialog-content {
    core/6019.patch.txt:38: tab in indent.
    				max-height: 5rem !important;
    core/6019.patch.txt:39: tab in indent.
    			}
    core/6019.patch.txt:40: tab in indent.
    		}
    Checking patch core/modules/workspaces/css/workspaces.off-canvas.css...
    Checking patch core/modules/workspaces/css/workspaces.off-canvas.pcss.css...
    Checking patch core/modules/workspaces/css/workspaces.off-canvas.pcss.css...
    Checking patch core/modules/workspaces/css/workspaces.off-canvas.pcss.css...
    Applied patch core/modules/workspaces/css/workspaces.off-canvas.css cleanly.
    Applied patch core/modules/workspaces/css/workspaces.off-canvas.pcss.css cleanly.
    Applied patch core/modules/workspaces/css/workspaces.off-canvas.pcss.css cleanly.
    Applied patch core/modules/workspaces/css/workspaces.off-canvas.pcss.css cleanly.
    warning: squelched 2 whitespace errors
    warning: 7 lines add whitespace errors.
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Sandeep_k New Delhi

    Thanks @swatidhurandhar, I have checked & the code is updated.
    Testing Steps-

    • Enable the workspace module.
    • Download & apply the patch.
    • Switch the screen below 768px
    • Click on workspace on the right side & change the workspace.
    • Reverify the modal content text.

    Testing Results
    Error is fixed successfully after applying the patch, We can remove the space to fix these warnings as well. Sharing after results. RTBC ++

  • Added code inside the media query as above 767px screen the modal content is working fine so I added media query below 767px
    Thanks

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Kanchan Bhogade

    Hi,
    I verified and tested MR!6019 on Drupal version- 11.0-dev.
    The patch was applied successfully.

    Testing Steps:

    1. Set up Drupal 11.
    2. Enable the workspace module.
    3. Switch the screen below 768px
    4. Click on workspace on the right side.
    5. See the modal content text, which gets cropped
    6. Download the patch and Apply.
    7. Reverify the modal content text for the screen below the 768px.

    Testing Results:
    Now the modal content text is not cropped and it's fully visible
    screenshots added for reference

    Moving to RTBC++

  • First commit to issue fork.
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia gauravvvv Delhi, India

    Instead of hardcoding a value, we can simply unset the max-height added by JavaScript to resolve the height issue.

    I have updated the MR.

  • Assigned to divya.sejekan
  • Issue was unassigned.
  • Status changed to RTBC 12 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia divya.sejekan

    Verified the Issue after the update in the MR . Issue is fixed

    Testing Steps:
    1. Enable the workspace module.
    2. Switch the screen below 768px
    3. Click on workspace on the right side.
    4. See the modal content text, which gets cropped
    5. Download the patch and Apply.
    6. Reverify the modal content text for the screen below the 768px.

    Testing Results:
    The modal content text is not cropped and it's fully visible on or below 768px
    screenshots added for reference

    Moving to RTBC++

  • ๐Ÿ‡ณ๐Ÿ‡ฟNew Zealand quietone

    I'm triaging RTBC issues โ†’ . I read the IS and the comments. I didn't find any unanswered questions or other work to do.

    @shweta__sharma, thanks for reporting this problem.

    Since this change the UI it should have the latest before and after screenshots linked to in the Issue Summary. That way reviewers and committers can easily find them. The proposed resolution is to remove max-height: 0px; but that line is not removed in the MR. For this short issue I don't think those points are enough to warrant sending this back to needs work. However, other committers may choose to do so.

    It really is good practice in Drupal to help reviewers and committers to have the Issue Summary up to date. A complete issue summary is inviting.

  • Sure @quietone

    Updated IS template.

    Thanks

  • Status changed to Needs work 10 months ago
  • ๐Ÿ‡ซ๐Ÿ‡ทFrance nod_ Lille

    I'd very much rather not having to use !important.

    Can we avoid this? making the rule more specific could work.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia gauravvvv Delhi, India

    We're overriding the value of max-height added by JavaScript using !important.

  • Status changed to RTBC 10 months ago
  • ๐Ÿ‡ซ๐Ÿ‡ทFrance nod_ Lille

    works for me, thanks for the context

  • Status changed to Needs work 10 months ago
  • ๐Ÿ‡ซ๐Ÿ‡ทFrance nod_ Lille

    Can we add a comment explaining that in the CSS? It'll help future us find out why !important was used.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia mithun s Bangalore

    Mithun S โ†’ made their first commit to this issueโ€™s fork.

  • Status changed to RTBC 10 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia gauravvvv Delhi, India

    Restoring status, RTBC as a comment has been added to CSS code.

    • nod_ โ†’ committed 00329c22 on 11.x
      Issue #3409640 by swatidhurandhar, Mithun S, shweta__sharma, Gauravvvv,...
    • nod_ โ†’ committed 33ec7705 on 10.3.x
      Issue #3409640 by swatidhurandhar, Mithun S, shweta__sharma, Gauravvvv,...
    • nod_ โ†’ committed a55f5739 on 10.2.x
      Issue #3409640 by swatidhurandhar, Mithun S, shweta__sharma, Gauravvvv,...
  • Status changed to Fixed 10 months ago
  • ๐Ÿ‡ซ๐Ÿ‡ทFrance nod_ Lille

    Committed 00329c2 and pushed to 11.x. Thanks!

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024