Skip to content

Commit 7b15e63

Browse files
author
Alain Bourgeois
committed
Copilot comments
1 parent 22526c3 commit 7b15e63

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

dev/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ try {
4848
document.getElementById('app').replaceWith(app)
4949
} catch (err) {
5050
console.error('Error rendering pane:', err)
51-
document.getElementById('app').innerHTML = `<p style="color:red;">Error: ${err.message}</p>`
51+
const appElement = document.getElementById('app')
52+
const errorParagraph = document.createElement('p')
53+
errorParagraph.style.color = 'red'
54+
errorParagraph.textContent = `Error: ${err.message}`
55+
appElement.textContent = ''
56+
appElement.appendChild(errorParagraph)
5257
}
5358

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "source-pane",
33
"version": "3.0.2",
44
"description": "Solid-compatible Panes: Source editor",
5-
"sideEffects": [
6-
"*.css"
7-
],
8-
"main": "src/sourcePane.js",
5+
"main": "lib/source-pane.js",
96
"files": [
10-
"/src",
7+
"/lib",
118
"README.md",
129
"LICENSE"
1310
],
11+
"sideEffects": [
12+
"**/*.css"
13+
],
1414
"scripts": {
1515
"clean": "rm -rf lib",
1616
"build": "npm run clean && npm run build-dist",

src/styles/sourcePane.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@
9999
}
100100

101101
.sourcePaneControlVisible {
102-
visibility: visible;
102+
display: block;
103103
}
104104

105105
.sourcePaneControlHidden {
106-
visibility: collapse;
106+
display: none;
107107
}

0 commit comments

Comments
 (0)