Skip to content

Commit b2d1739

Browse files
committed
Add link to feature request form.
1 parent db366f2 commit b2d1739

File tree

3 files changed

+29
-26
lines changed

3 files changed

+29
-26
lines changed

devtools/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Three.js DevTools",
4-
"version": "1.7",
4+
"version": "1.8",
55
"description": "Developer tools extension for Three.js",
66
"icons": {
77
"128": "icons/128-light.png"

devtools/panel/panel.css

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,35 @@ hr {
2121
overflow: auto;
2222
}
2323

24-
.info-item {
24+
.header {
2525
padding: 8px 12px;
2626
background: light-dark( #f5f5f5, #333 );
2727
border-radius: 4px;
2828
margin-bottom: 16px;
2929
font-family: monospace;
3030
color: light-dark( #666, #aaa );
3131
}
32+
.header a {
33+
color: light-dark( #666, #aaa );
34+
text-decoration: none;
35+
}
36+
.header a:hover {
37+
color: light-dark( #333, #e0e0e0 );
38+
}
39+
3240
.section {
3341
margin-bottom: 24px;
3442
}
35-
.section h3 {
36-
margin: 0 0 8px 0;
37-
font-size: 11px;
38-
text-transform: uppercase;
39-
color: light-dark( #666, #aaa );
40-
font-weight: 500;
41-
border-bottom: 1px solid light-dark( #eee, #444 );
42-
padding-bottom: 4px;
43-
}
43+
44+
.section h3 {
45+
margin: 0 0 8px 0;
46+
font-size: 11px;
47+
text-transform: uppercase;
48+
color: light-dark( #666, #aaa );
49+
font-weight: 500;
50+
border-bottom: 1px solid light-dark( #eee, #444 );
51+
padding-bottom: 4px;
52+
}
4453

4554
.tree-item {
4655
padding: 4px;

devtools/panel/panel.js

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -419,30 +419,24 @@ function updateUI() {
419419
const container = document.getElementById( 'scene-tree' );
420420
container.innerHTML = '';
421421

422-
const versionInfo = document.createElement( 'div' );
423-
versionInfo.className = 'info-item';
424-
versionInfo.style.display = 'flex'; // Use flexbox
425-
versionInfo.style.justifyContent = 'space-between'; // Align items left and right
422+
const header = document.createElement( 'div' );
423+
header.className = 'header';
424+
header.style.display = 'flex'; // Use flexbox
425+
header.style.justifyContent = 'space-between'; // Align items left and right
426426

427-
const threeVersionSpan = document.createElement( 'span' );
428-
429-
// TODO: Why it's not available?
430-
if ( state.revision ) {
431-
432-
threeVersionSpan.textContent = `Three.js r${state.revision}`;
433-
434-
}
427+
const miscSpan = document.createElement( 'span' );
428+
miscSpan.innerHTML = `<a href="https://docs.google.com/forms/d/e/1FAIpQLSdw1QcgXNiECYiPx6k0vSQRiRe0FmByrrojV4fgeL5zzXIiCw/viewform?usp=preview" target="_blank">+</a>`;
435429

436430
const manifest = chrome.runtime.getManifest();
437431

438432
const manifestVersionSpan = document.createElement( 'span' );
439433
manifestVersionSpan.textContent = `${manifest.version}`;
440434
manifestVersionSpan.style.opacity = '0.5'; // Make it less prominent
441435

442-
versionInfo.appendChild( threeVersionSpan );
443-
versionInfo.appendChild( manifestVersionSpan );
436+
header.appendChild( miscSpan );
437+
header.appendChild( manifestVersionSpan );
444438

445-
container.appendChild( versionInfo );
439+
container.appendChild( header );
446440

447441
// Add renderers section
448442
if ( state.renderers.size > 0 ) {

0 commit comments

Comments
 (0)