Skip to content

Commit 1842c6d

Browse files
committed
Fixes #190 panel title for multiple components
1 parent 55313e9 commit 1842c6d

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

‎example/index.html‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@
2222
<img id="floorimg" src="assets/textures/grasslight-big.jpg">
2323
<img id="floorimg2" src="assets/textures/grasslight-big.jpg">
2424
</a-assets>
25-
<!-- <a-entity id="soundcube" position="0 0 -10" rotation="45 30 0"
26-
sound__1="autoplay: true; src: assets/sounds/321103__nsstudios__blip1.wav;"
27-
sound__2="autoplay: true; src: assets/sounds/Laser-SoundBible.com-602495617.com-602495617.ogg;"
28-
geometry="primitive: box; height: 8; width: 8; depth: 8;"
29-
material="color: #167341; roughness: 1.0; metalness: 0.2;">
30-
</a-entity>-->
3125
<a-entity position="0 1 8">
3226
<a-entity camera look-controls wasd-controls>
3327
<a-entity visible="true" position="0 0 -2" geometry="primitive: ring; radiusOuter: 0.016; radiusInner: 0.01" material="color: #ff9; shader: flat; transparent: true; opacity: 0.5" scale="2 2 2" raycaster="">

‎src/components/attributes/Component.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default class Component extends React.Component {
5959
return (
6060
<Collapsible>
6161
<div className='collapsible-header'>
62-
<span>{componentName} <span className='subcomponent'>{subComponentName}</span></span>
62+
<span title={subComponentName || componentName}>{subComponentName || componentName}</span>
6363
<div className='dropdown menu'>
6464
<div className='dropdown-content'>
6565
<a href='#' onClick={this.deleteComponent}>Delete</a>

‎src/css/dark.css‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,9 @@ div.vec3 {
322322

323323
.collapsible-header span {
324324
float: left;
325+
max-width: 180px;
326+
overflow: hidden;
327+
text-overflow: ellipsis;
325328
text-transform: uppercase;
326329
}
327330

0 commit comments

Comments
 (0)