Skip to content

Commit 062a222

Browse files
committed
Fix Scrolling error in editor and make chrome builds export a zip
1 parent 0ca308c commit 062a222

File tree

6 files changed

+23
-18
lines changed

6 files changed

+23
-18
lines changed

README.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,27 @@ CodeTweak is a Manifest V3 userscript manager with a built-in editor.
99
- Support common GM APIs (`GM_getValue`, `GM_setValue`, `GM_xmlhttpRequest`, etc).
1010
- Import scripts from Greasy Fork.
1111

12-
## Install
13-
14-
### Chrome / Chromium (manual)
12+
## Build (Firefox)
1513

1614
```bash
17-
npm install
18-
npm run build:chrome
15+
npm ci
16+
npm run build:firefox
1917
```
2018

21-
Then:
19+
- Build script: `buildScripts/build-firefox.js`
20+
- Output folder: `build/firefox`
21+
- Firefox package: `build/codetweak-firefox.zip`
2222

23-
1. Open `chrome://extensions`.
24-
2. Enable `Developer mode`.
25-
3. Click `Load unpacked`.
26-
4. Select `build/chrome`.
27-
28-
### Firefox (manual)
23+
## Build (Chrome)
2924

3025
```bash
31-
npm install
32-
npm run build:firefox
26+
npm ci
27+
npm run build:chrome
3328
```
3429

35-
Use the generated package:
30+
Output: `build/chrome`
31+
- Chrome package: `build/codetweak-chrome.zip`
3632

37-
- `build/codetweak-firefox.zip`
3833

3934
## Development
4035

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"scripts": {
1212
"build": "npm run build:chrome",
13-
"build:chrome": "node buildScripts/build-chrome.js --browser=chrome",
13+
"build:chrome": "node buildScripts/build-chrome.js --browser=chrome --production",
1414
"build:firefox": "node buildScripts/build-firefox.js --production",
1515
"lint": "eslint .",
1616
"docs:dev": "vitepress dev docs-src",

screenshots/ai-mode-screenshot.png

564 KB
Loading
249 KB
Loading

screenshots/editor-screenshot.png

686 KB
Loading

src/assets/styles/editor/editor.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ html, body {
4949
border-left: 1px solid var(--border-primary);
5050
}
5151

52+
/* Keep CodeMirror scroll inside the editor pane since page scroll is disabled */
53+
.editor-container .cm-editor {
54+
height: 100%;
55+
max-height: 100%;
56+
}
57+
58+
.editor-container .cm-scroller {
59+
overflow: auto;
60+
}
61+
5262
::-webkit-scrollbar {
5363
display: none;
5464
}
@@ -220,4 +230,4 @@ html {
220230
}
221231
.help-tab-content.active {
222232
display: block;
223-
}
233+
}

0 commit comments

Comments
 (0)