# HG changeset patch # User drewp@bigasterisk.com # Date 2023-05-18 00:27:16 # Node ID b39f6c363163d8f60e00710c09129fbaf9ee7232 # Parent a9697b5d3077b8eb1e60f6e49b8433d464de7cb3 reformat diff --git a/light9/ascoltami/Light9AscoltamiUi.ts b/light9/ascoltami/Light9AscoltamiUi.ts --- a/light9/ascoltami/Light9AscoltamiUi.ts +++ b/light9/ascoltami/Light9AscoltamiUi.ts @@ -66,23 +66,24 @@ export class Light9AscoltamiUi extends L height: 100%; } #grow { - flex: 1 1 auto; display: flex; - } #grow > span { display: flex; position: relative; - width:50%; + width: 50%; } #playSelected { - height:100px; + height: 100px; } #songList { overflow-y: scroll; position: absolute; - left:0;top:0;right:0;bottom:0; + left: 0; + top: 0; + right: 0; + bottom: 0; } #songList .row { width: 60%; @@ -90,8 +91,12 @@ export class Light9AscoltamiUi extends L text-align: left; position: relative; } - #songList .row:nth-child(even) {background: #333;} - #songList .row:nth-child(odd) {background: #444;} + #songList .row:nth-child(even) { + background: #333; + } + #songList .row:nth-child(odd) { + background: #444; + } #songList button { min-height: 40px; margin-bottom: 10px; @@ -108,84 +113,55 @@ export class Light9AscoltamiUi extends L - +
-
- - ${this.songList.map( - (song) => html` - - - - - ` - )} -
- -
-
-
- - +
+ + ${this.songList.map( + (song) => html` + + + + + ` + )} +
+ +
+
+
- - +
- - - - + + +
- - @@ -283,11 +259,7 @@ export class Light9AscoltamiUi extends L } byId("updateReq").innerText = "" + updateFreq; - (window as any).finishOldStyleSetup( - this.times, - updateFreq, - this.onOldStyleUpdate.bind(this) - ); + (window as any).finishOldStyleSetup(this.times, updateFreq, this.onOldStyleUpdate.bind(this)); } onOldStyleUpdate(data: TimingUpdate) { @@ -299,9 +271,7 @@ export class Light9AscoltamiUi extends L const t1 = data.t - 2, t2 = data.t + 20; this.zoom = { duration: data.duration, t1, t2 }; - const timeRow = this.shadowRoot!.querySelector( - ".timeRow" - ) as HTMLDivElement; + const timeRow = this.shadowRoot!.querySelector(".timeRow") as HTMLDivElement; const w = timeRow.offsetWidth; this.viewState = { zoomSpec: { t1: () => t1, t2: () => t2 },