Skip to content

Commit

Permalink
fix zoom for commit graph
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Apr 29, 2024
1 parent a4d1487 commit f088ecc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion ui/src/elements/commit-history.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export class CommitHistory extends LitElement {
}

drawGraph (commits: RecordBag<Commit>) {

const startTime = new Date()
console.log("Starting draw graph @", startTime.toLocaleTimeString())
let profiles : ReadonlyMap<Uint8Array, EntryRecord<Profile>> | undefined
if (this._profiles.value.status === "complete") {
profiles = this._profiles.value.value
Expand Down Expand Up @@ -215,6 +216,11 @@ export class CommitHistory extends LitElement {
}
}
}
const endTime = new Date()

console.log("Ending draw graph @", endTime.toLocaleTimeString())
console.log("Elapsed", endTime.getTime()-startTime.getTime())
console.log("X", container?.scrollWidth)
}

async firstUpdated() {
Expand Down Expand Up @@ -353,6 +359,7 @@ export class CommitHistory extends LitElement {
}
#graph {
width: 500px;
transform-origin: top left;
}
`,
];
Expand Down
2 changes: 1 addition & 1 deletion ui/src/notebooks-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ export class NotebooksApp extends LitElement {
}

return html`
<sl-dialog label="Notebooks: UI v0.2.7 for DNA v0.2.0" id="about-dialog" width={600} >
<sl-dialog label="Notebooks: UI v0.2.8 for DNA v0.2.0" id="about-dialog" width={600} >
<div class="about">
<p>Notebooks is a demonstration Holochain app built by Lighning Rod Labs.</p>
<p> <b>Developers:</b>
Expand Down

0 comments on commit f088ecc

Please sign in to comment.