Skip to content

Conversation

@vividtone
Copy link
Contributor

CSS内で使われている物理プロパティを、書字方向を意識した論理プロパティに変換して、RTL言語との互換性を高めます。

なお、この更新を適用するだけでは、現行バージョンのRedmineではRTL環境でのレイアウト崩れは解消しません。そもそもRedmine本体のCSSでレイアウト崩れが発生しているためです。レイアウト崩れを根本的に解消するためにはRedmine 7.0 / RedMica 4.1 以降が必要です。

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR converts physical CSS properties to logical properties to improve support for RTL (right-to-left) languages. The changes replace directional properties (like padding-left, margin-right) with their logical equivalents (like padding-inline-start, margin-block-end) that adapt based on writing direction.

Changes:

  • Converted padding and margin properties from physical to logical notation
  • Converted width to inline-size and alignment properties to flow-relative values
  • Added RTL-specific shadow adjustments for header and menu elements

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +287 to 292
border-block-width: 1px 0;
border-inline-width: 0;
border-style: solid;
border-color: #f00;
}

Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original border shorthand 1px 0 0 0 0 solid #f00 appears to have an extra value. The logical property conversion should match the intent of the original, which seems malformed. Verify the intended border values - the shorthand should only have 4 directional values, not 5.

Suggested change
border-block-width: 1px 0;
border-inline-width: 0;
border-style: solid;
border-color: #f00;
}
border-block-start: 1px solid #f00;
border-block-end: 0;
border-inline: 0;
}

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vividtone
今まではborderに対する値の数が不正で実際には適用されていなかったCSSが、記法が修正されたことで機能するようになっています。

Image このスタイルの影響で赤い線が表示されるようになっているのですが、恐らく赤い線はレイアウトとしても不自然で、不要だと思います。
div.attributes[id="attributes"] {
  border-block-width: 1px 0;
  border-inline-width: 0;
  border-style: solid;
  border-color: #f00;
}

の部分ごと消しても良いと思うのですが、どうでしょうか?


form .attributes {
margin-bottom: 8px
margin-block-end: 8px
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon at end of CSS declaration.

Copilot uses AI. Check for mistakes.
Copy link
Collaborator

@ishikawa999 ishikawa999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一点、チケットのフォームに赤い線が入るようになっているので、修正した方が良いと思います。

Comment on lines +287 to 292
border-block-width: 1px 0;
border-inline-width: 0;
border-style: solid;
border-color: #f00;
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vividtone
今まではborderに対する値の数が不正で実際には適用されていなかったCSSが、記法が修正されたことで機能するようになっています。

Image このスタイルの影響で赤い線が表示されるようになっているのですが、恐らく赤い線はレイアウトとしても不自然で、不要だと思います。
div.attributes[id="attributes"] {
  border-block-width: 1px 0;
  border-inline-width: 0;
  border-style: solid;
  border-color: #f00;
}

の部分ごと消しても良いと思うのですが、どうでしょうか?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants