Spaces:
Running
Running
Commit
•
5743069
1
Parent(s):
31a2d08
adjust mobile spacing
Browse files- src/routes/ModelDetails.svelte +1 -1
- src/routes/Viewer.svelte +2 -0
- static/global.css +6 -0
src/routes/ModelDetails.svelte
CHANGED
@@ -54,7 +54,7 @@
|
|
54 |
<button class="title-button" on:click={fetchScenes}>
|
55 |
<h2 class="muted">{modelName}</h2>
|
56 |
</button>
|
57 |
-
<div class="spacer" />
|
58 |
</div>
|
59 |
{#if scenes.length > 0}
|
60 |
<div class="grid">
|
|
|
54 |
<button class="title-button" on:click={fetchScenes}>
|
55 |
<h2 class="muted">{modelName}</h2>
|
56 |
</button>
|
57 |
+
<div class="desktop-spacer" />
|
58 |
</div>
|
59 |
{#if scenes.length > 0}
|
60 |
<div class="grid">
|
src/routes/Viewer.svelte
CHANGED
@@ -65,11 +65,13 @@
|
|
65 |
<div class="back" aria-label="Back" aria-hidden="true" on:click={onBack}>
|
66 |
<ArrowLeft size={24} />
|
67 |
</div>
|
|
|
68 |
<button class="title-button" on:click={loadScene}>
|
69 |
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
70 |
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
71 |
<h2><span class="muted" on:click={onBack}>{modelName}/</span>{scene.name}</h2>
|
72 |
</button>
|
|
|
73 |
</div>
|
74 |
<div class="canvas-container" bind:this={container}>
|
75 |
<canvas bind:this={canvas} width={800} height={600} />
|
|
|
65 |
<div class="back" aria-label="Back" aria-hidden="true" on:click={onBack}>
|
66 |
<ArrowLeft size={24} />
|
67 |
</div>
|
68 |
+
<div class="spacer" />
|
69 |
<button class="title-button" on:click={loadScene}>
|
70 |
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
71 |
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
72 |
<h2><span class="muted" on:click={onBack}>{modelName}/</span>{scene.name}</h2>
|
73 |
</button>
|
74 |
+
<div class="desktop-spacer" />
|
75 |
</div>
|
76 |
<div class="canvas-container" bind:this={container}>
|
77 |
<canvas bind:this={canvas} width={800} height={600} />
|
static/global.css
CHANGED
@@ -127,6 +127,12 @@ body {
|
|
127 |
flex: 1;
|
128 |
}
|
129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
.title-button {
|
131 |
background: none;
|
132 |
border: none;
|
|
|
127 |
flex: 1;
|
128 |
}
|
129 |
|
130 |
+
.desktop-spacer {
|
131 |
+
@media (min-width: 768px) {
|
132 |
+
flex: 1;
|
133 |
+
}
|
134 |
+
}
|
135 |
+
|
136 |
.title-button {
|
137 |
background: none;
|
138 |
border: none;
|