antigravity-rtl-patcher 3.0.9 → 3.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antigravity-rtl-patcher",
3
- "version": "3.0.9",
3
+ "version": "3.0.10",
4
4
  "description": "Advanced RTL and Persian/Arabic typography patcher for Antigravity with customizable UI",
5
5
  "main": "src/patcher.js",
6
6
  "bin": {
@@ -60,7 +60,7 @@ win.webContents.on('dom-ready', () => {
60
60
  text-align: left !important;
61
61
  }
62
62
 
63
- /* RTL only for message/chat content area */
63
+ /* RTL for message/chat content area */
64
64
  body.rtl-active [class*="message"] p,
65
65
  body.rtl-active [class*="message"] h1,
66
66
  body.rtl-active [class*="message"] h2,
@@ -97,6 +97,24 @@ win.webContents.on('dom-ready', () => {
97
97
  text-align: right !important;
98
98
  }
99
99
 
100
+ /* RTL for tables */
101
+ body.rtl-active table,
102
+ body.rtl-active td,
103
+ body.rtl-active th {
104
+ direction: rtl !important;
105
+ text-align: right !important;
106
+ }
107
+
108
+ /* RTL for code blocks (bash, etc) */
109
+ body.rtl-active pre,
110
+ body.rtl-active code,
111
+ body.rtl-active pre *,
112
+ body.rtl-active code * {
113
+ direction: rtl !important;
114
+ text-align: right !important;
115
+ font-family: 'Courier New', Consolas, Monaco, monospace !important;
116
+ }
117
+
100
118
  /* Lists */
101
119
  body.rtl-active [class*="message"] ul,
102
120
  body.rtl-active [class*="message"] ol,
@@ -110,16 +128,6 @@ win.webContents.on('dom-ready', () => {
110
128
  padding-right: 2rem !important;
111
129
  }
112
130
 
113
- /* Code blocks always LTR */
114
- body.rtl-active pre,
115
- body.rtl-active code,
116
- body.rtl-active pre *,
117
- body.rtl-active code * {
118
- direction: ltr !important;
119
- text-align: left !important;
120
- font-family: 'Courier New', Consolas, Monaco, monospace !important;
121
- }
122
-
123
131
  /* Keep UI elements LTR */
124
132
  body.rtl-active button,
125
133
  body.rtl-active input,