Project

General

Profile

Actions

Defect #43591

closed

Context menu is hidden behind sidebar in RTL layout

Defect #43591: Context menu is hidden behind sidebar in RTL layout

Added by Yasu Saku 12 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
UI
Target version:
Resolution:
Fixed
Affected version:

Description

In RTL environments, the context menu does not display correctly.
When the menu is opened near the left edge of the screen, it may be partially hidden behind the sidebar or extend beyond the visible area of the page.

For example


Files

Updated by Yasu Saku 12 months ago Actions #1

Simple solution for this problem is as follows:

html[dir="rtl"],
html:has(head link[rel="stylesheet"][href*="/rtl"]) {
  .contextual .drdn-content {
    inset-inline-start: auto;
    inset-inline-end: 0;

    a.icon {
      padding-inline-start: 24px;
      padding-inline-end: 0;
      background-position-x: calc(100% - 4px);

      /* For Redmine 6 and lator */
      &:has(svg) {
        padding-inline-start: 0;
      }
    }
  }
}

Updated by Yasu Saku 12 months ago Actions #2

Yasu Saku wrote in #note-1:

Simple solution for this problem is as follows:
[...]

Sorry, this solution does not handle submenus in the context menu.

Updated by Go MAEDA 12 months ago Actions #3

  • Status changed from New to Confirmed

Updated by Go MAEDA 11 months ago Actions #4

I propose another solution. The attached patch only replaces the CSS right and margin-left/right properties with inset-inline-end and margin-inline-start/end. Because the patch does not rely on checking html[dir="rtl"] or link[rel="stylesheet"], I believe this approach is simpler than the patch suggested in #note-2.

Updated by Go MAEDA 11 months ago Actions #5

  • Related to Feature #43515: Improve RTL layouts by removing rtl.css and integrating its overrides into application.css using CSS logical properties added

Updated by Go MAEDA 11 months ago Actions #6

  • Subject changed from Context Menu Is Not Displayed Correctly in RTL Layout to Context menu is hidden behind sidebar in RTL layout
  • Status changed from Confirmed to Resolved
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Fixed in r24249.

Updated by Go MAEDA 11 months ago Actions #7

  • Status changed from Resolved to Closed

Merged the change into 6.1-stable branch in r24250.

Updated by Go MAEDA 11 months ago Actions #8

  • Related to deleted (Feature #43515: Improve RTL layouts by removing rtl.css and integrating its overrides into application.css using CSS logical properties)

Updated by Yasu Saku 11 months ago Actions #9

@Go MAEDA
Thank you for your continued support.

Actions

Also available in: PDF Atom