Skip to content

Commit

Permalink
add scrolling on splat list
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck committed Sep 19, 2024
1 parent 8c5e885 commit 76a44be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/ui/scene-panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@

.collapsed #scene-panel {
display: none;
}

.splat-list-container {
max-height: 300px;
overflow: auto;
}
7 changes: 6 additions & 1 deletion src/ui/scene-panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ class ScenePanel extends Container {

const splatList = new SplatList(events);

const splatListContainer = new Container({
class: 'splat-list-container'
});
splatListContainer.append(splatList);

const transformHeader = new Container({
class: `panel-header`
});
Expand All @@ -86,7 +91,7 @@ class ScenePanel extends Container {
transformHeader.append(transformLabel);

this.append(sceneHeader);
this.append(splatList);
this.append(splatListContainer);
this.append(transformHeader);
this.append(new Transform(events));
this.append(new Element({
Expand Down

0 comments on commit 76a44be

Please sign in to comment.