antigravity-rtl-patcher 3.0.8 → 3.0.9

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.8",
3
+ "version": "3.0.9",
4
4
  "description": "Advanced RTL and Persian/Arabic typography patcher for Antigravity with customizable UI",
5
5
  "main": "src/patcher.js",
6
6
  "bin": {
@@ -47,19 +47,65 @@ win.webContents.on('dom-ready', () => {
47
47
  -webkit-font-smoothing: antialiased !important;
48
48
  }
49
49
 
50
- /* RTL ALL text content - but NOT layout */
51
- body.rtl-active p,
52
- body.rtl-active h1, body.rtl-active h2, body.rtl-active h3,
53
- body.rtl-active h4, body.rtl-active h5, body.rtl-active h6,
54
- body.rtl-active li, body.rtl-active span:not(.rtl-ui),
55
- body.rtl-active div:not(#rtl-panel):not(.rtl-ui):not([class*="button"]):not([class*="icon"]):not([class*="toolbar"]) > *:not(button):not(input):not(select) {
50
+ /* Keep sidebars, navigation, and main layout LTR */
51
+ body.rtl-active [class*="sidebar"],
52
+ body.rtl-active [class*="nav"],
53
+ body.rtl-active [class*="menu"],
54
+ body.rtl-active [class*="toolbar"],
55
+ body.rtl-active [class*="panel"],
56
+ body.rtl-active [class*="list"],
57
+ body.rtl-active aside,
58
+ body.rtl-active nav {
59
+ direction: ltr !important;
60
+ text-align: left !important;
61
+ }
62
+
63
+ /* RTL only for message/chat content area */
64
+ body.rtl-active [class*="message"] p,
65
+ body.rtl-active [class*="message"] h1,
66
+ body.rtl-active [class*="message"] h2,
67
+ body.rtl-active [class*="message"] h3,
68
+ body.rtl-active [class*="message"] h4,
69
+ body.rtl-active [class*="message"] h5,
70
+ body.rtl-active [class*="message"] h6,
71
+ body.rtl-active [class*="message"] li,
72
+ body.rtl-active [class*="chat"] p,
73
+ body.rtl-active [class*="chat"] h1,
74
+ body.rtl-active [class*="chat"] h2,
75
+ body.rtl-active [class*="chat"] h3,
76
+ body.rtl-active [class*="chat"] h4,
77
+ body.rtl-active [class*="chat"] h5,
78
+ body.rtl-active [class*="chat"] h6,
79
+ body.rtl-active [class*="chat"] li,
80
+ body.rtl-active [class*="content"] p,
81
+ body.rtl-active [class*="content"] h1,
82
+ body.rtl-active [class*="content"] h2,
83
+ body.rtl-active [class*="content"] h3,
84
+ body.rtl-active [class*="content"] h4,
85
+ body.rtl-active [class*="content"] h5,
86
+ body.rtl-active [class*="content"] h6,
87
+ body.rtl-active [class*="content"] li,
88
+ body.rtl-active main p,
89
+ body.rtl-active main h1,
90
+ body.rtl-active main h2,
91
+ body.rtl-active main h3,
92
+ body.rtl-active main h4,
93
+ body.rtl-active main h5,
94
+ body.rtl-active main h6,
95
+ body.rtl-active main li {
56
96
  direction: rtl !important;
57
97
  text-align: right !important;
58
98
  }
59
99
 
60
100
  /* Lists */
61
- body.rtl-active ul,
62
- body.rtl-active ol {
101
+ body.rtl-active [class*="message"] ul,
102
+ body.rtl-active [class*="message"] ol,
103
+ body.rtl-active [class*="chat"] ul,
104
+ body.rtl-active [class*="chat"] ol,
105
+ body.rtl-active [class*="content"] ul,
106
+ body.rtl-active [class*="content"] ol,
107
+ body.rtl-active main ul,
108
+ body.rtl-active main ol {
63
109
  padding-left: 0 !important;
64
110
  padding-right: 2rem !important;
65
111
  }
@@ -78,9 +124,7 @@ win.webContents.on('dom-ready', () => {
78
124
  body.rtl-active button,
79
125
  body.rtl-active input,
80
126
  body.rtl-active select,
81
- body.rtl-active [role="button"],
82
- body.rtl-active [class*="toolbar"],
83
- body.rtl-active [class*="menu"] {
127
+ body.rtl-active [role="button"] {
84
128
  direction: ltr !important;
85
129
  text-align: left !important;
86
130
  }