mirror of
https://github.com/litruv/lit.ruv.wtf.git
synced 2026-09-10 10:09:40 +10:00
fix(DebugPanel): add is-visible class and CSS for expanded panel
This commit is contained in:
@@ -203,6 +203,7 @@ export class DebugPanel {
|
|||||||
|
|
||||||
/** Expands the debug panel if it is collapsed. */
|
/** Expands the debug panel if it is collapsed. */
|
||||||
show() {
|
show() {
|
||||||
|
this.#panel.classList.add("is-visible");
|
||||||
this.#panel.classList.remove("collapsed");
|
this.#panel.classList.remove("collapsed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -182,6 +182,10 @@ svg.world-image {
|
|||||||
transition: min-width 0.2s ease;
|
transition: min-width 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.debug-panel.is-visible {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
.debug-panel.collapsed {
|
.debug-panel.collapsed {
|
||||||
min-width: auto;
|
min-width: auto;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user