fix(playground): view tab Arduino/Flowchart/Circuit mengikuti ruang kosong & tambah link Playground di menu burger
- playground +page: jadikan main.container flex-column + .playground-page flex:1 agar memenuhi ruang sisa setelah navbar (sebelumnya height:100% resolve ke tinggi intrinsik karena parent display:block) - pg-content: tambah flex-direction:column supaya flex:1 grow tinggi bukan lebar - override :global .flowchart-container & .circuit-wrapper jadi height:100%;flex:1; min-height:0 (hilangkan min-height:400px / height:550px fix) agar melar - Navbar: tambah link Playground di dropdown burger tepat di bawah Tema Gelap - terverifikasi Playwright desktop(1280x800) & mobile(390x780): semua tab 98-100%
This commit is contained in:
parent
ffceb519be
commit
1659063784
|
|
@ -54,6 +54,10 @@
|
||||||
Tema Gelap
|
Tema Gelap
|
||||||
{/if}
|
{/if}
|
||||||
</button>
|
</button>
|
||||||
|
<a href="/playground" class="dropdown-item" onclick={() => (showDropdown = false)}>
|
||||||
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line></svg>
|
||||||
|
Playground
|
||||||
|
</a>
|
||||||
<a href="/help" target="_blank" class="dropdown-item" onclick={() => (showDropdown = false)}>
|
<a href="/help" target="_blank" class="dropdown-item" onclick={() => (showDropdown = false)}>
|
||||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line></svg>
|
||||||
Bantuan
|
Bantuan
|
||||||
|
|
|
||||||
|
|
@ -276,10 +276,16 @@
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>Developer Playground — Elemes</title>
|
<title>Developer Playground — Elemes</title>
|
||||||
<style>
|
<style>
|
||||||
/* Override root container constrainer — playground is full viewport */
|
/* Override root container constrainer — playground is full viewport.
|
||||||
|
main.container default-nya display:block + height auto, jadi anak
|
||||||
|
.playground-page{height:100%} cuma ngisi tinggi intrinsic-nya.
|
||||||
|
Jadikan flex-column agar playground memenuhi ruang sisa setelah navbar. */
|
||||||
main.container {
|
main.container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
max-width: none !important;
|
max-width: none !important;
|
||||||
padding-inline: 0 !important;
|
padding-inline: 0 !important;
|
||||||
|
min-height: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
@ -419,7 +425,8 @@
|
||||||
<style>
|
<style>
|
||||||
.playground-page {
|
.playground-page {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
flex: 1;
|
||||||
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
@ -483,6 +490,7 @@
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pg-iframe {
|
.pg-iframe {
|
||||||
|
|
@ -502,15 +510,16 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Override CircuitEditor agar fill flex area */
|
/* Override CircuitEditor agar fill ruang kosong di desktop */
|
||||||
.pg-content :global(.circuit-container) {
|
.pg-content :global(.circuit-container) {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pg-content :global(.circuit-wrapper) {
|
.pg-content :global(.circuit-wrapper) {
|
||||||
flex: 1;
|
flex: 1 1 auto;
|
||||||
height: auto;
|
height: 100%;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -651,6 +660,7 @@
|
||||||
.pg-content :global(.flowchart-container) {
|
.pg-content :global(.flowchart-container) {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Mobile ── */
|
/* ── Mobile ── */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue