Skip to content

Commit 936a8fc

Browse files
committed
Demo cleanup
1 parent 31da56e commit 936a8fc

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

src/pg/inputPixelEditor/__examples__/basic/basic.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ label {
2424
}
2525

2626
h3 {
27+
display: flex;
2728
margin: 0.25rem 0;
2829
font-size: 1.125rem;
30+
align-items: center;
31+
}
32+
33+
[part=addColor],
34+
[part=addLayer] {
35+
vertical-align: middle;
36+
margin-left: 0.5rem;
2937
}

src/pg/inputPixelEditor/__examples__/basic/basic.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,11 @@ <h3>Drawing Tools</h3>
5050
<button part="modeStamp4" data-stamp="heart">Heart</button>
5151
</div>
5252
<div>
53-
<h3>Color Tools</h3>
54-
<button part="addColor">Add Color</button>
53+
<h3>Color Tools <button part="addColor">Add Color</button></h3>
5554
<pg-table part="colors"></pg-table>
5655
</div>
5756
<div>
58-
<h3>Layer Tools</h3>
59-
<button part="addLayer">Add Layer</button>
57+
<h3>Layer Tools <button part="addLayer">Add Layer</button></h3>
6058
<pg-table part="layers"></table>
6159
</div>
6260
<div>

src/pg/inputPixelEditor/__examples__/basic/basic.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ export default class XPgInputPixelEditorBasic extends HTMLElement {
151151
}, {
152152
label: 'Type',
153153
key: 'type',
154+
}, {
155+
label: 'Selected',
156+
key: 'selected',
154157
}];
155158
this.$addLayer.addEventListener('click', () => {
156159
// number[][][]

0 commit comments

Comments
 (0)