Commit
·
d10886e
1
Parent(s):
591c898
shorten names
Browse files
src/routes/ModelDetails.svelte
CHANGED
@@ -103,7 +103,7 @@
|
|
103 |
{#each scenes as scene}
|
104 |
<button class="grid-item" on:click={() => onSceneClick(scene)}>
|
105 |
<img src={scene.thumbnail} alt={scene.name} class="thumbnail" />
|
106 |
-
<div class="title">{scene.name}</div>
|
107 |
</button>
|
108 |
{/each}
|
109 |
</div>
|
|
|
103 |
{#each scenes as scene}
|
104 |
<button class="grid-item" on:click={() => onSceneClick(scene)}>
|
105 |
<img src={scene.thumbnail} alt={scene.name} class="thumbnail" />
|
106 |
+
<div class="title">{scene.name.length > 16 ? `${scene.name.slice(0, 16)}...` : scene.name}</div>
|
107 |
</button>
|
108 |
{/each}
|
109 |
</div>
|
src/routes/Viewer.svelte
CHANGED
@@ -77,7 +77,11 @@
|
|
77 |
<button class="title-button" on:click={loadScene}>
|
78 |
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
79 |
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
80 |
-
<h2
|
|
|
|
|
|
|
|
|
81 |
</button>
|
82 |
<div class="desktop-spacer" />
|
83 |
</div>
|
|
|
77 |
<button class="title-button" on:click={loadScene}>
|
78 |
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
79 |
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
80 |
+
<h2>
|
81 |
+
<span class="muted" on:click={onBack}>{modelName}/</span>{scene.name.length > 16
|
82 |
+
? `${scene.name.slice(0, 16)}...`
|
83 |
+
: scene.name}
|
84 |
+
</h2>
|
85 |
</button>
|
86 |
<div class="desktop-spacer" />
|
87 |
</div>
|