-
Notifications
You must be signed in to change notification settings - Fork 14
物理プロパティを論理プロパティに変換しRTLサポートを改善 #13
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
| border-block-width: 1px 0; | ||
| border-inline-width: 0; | ||
| border-style: solid; | ||
| border-color: #f00; | ||
| } | ||
|
|
Copilot
AI
Jan 28, 2026
There was a problem hiding this comment.
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.
| 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; | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vividtone
今まではborderに対する値の数が不正で実際には適用されていなかったCSSが、記法が修正されたことで機能するようになっています。
このスタイルの影響で赤い線が表示されるようになっているのですが、恐らく赤い線はレイアウトとしても不自然で、不要だと思います。
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 |
Copilot
AI
Jan 28, 2026
There was a problem hiding this comment.
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.
ishikawa999
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一点、チケットのフォームに赤い線が入るようになっているので、修正した方が良いと思います。
| border-block-width: 1px 0; | ||
| border-inline-width: 0; | ||
| border-style: solid; | ||
| border-color: #f00; | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vividtone
今まではborderに対する値の数が不正で実際には適用されていなかったCSSが、記法が修正されたことで機能するようになっています。
このスタイルの影響で赤い線が表示されるようになっているのですが、恐らく赤い線はレイアウトとしても不自然で、不要だと思います。
div.attributes[id="attributes"] {
border-block-width: 1px 0;
border-inline-width: 0;
border-style: solid;
border-color: #f00;
}
の部分ごと消しても良いと思うのですが、どうでしょうか?
CSS内で使われている物理プロパティを、書字方向を意識した論理プロパティに変換して、RTL言語との互換性を高めます。
なお、この更新を適用するだけでは、現行バージョンのRedmineではRTL環境でのレイアウト崩れは解消しません。そもそもRedmine本体のCSSでレイアウト崩れが発生しているためです。レイアウト崩れを根本的に解消するためにはRedmine 7.0 / RedMica 4.1 以降が必要です。