Move segment shortcut next to Edit button, shorten to '+ segment'
This commit is contained in:
@@ -263,6 +263,12 @@
|
||||
Edit
|
||||
</button>
|
||||
{/if}
|
||||
{#if trackUrl}
|
||||
<a
|
||||
href="{base}segments/new/?activity={activity.id}"
|
||||
class="text-xs px-2 py-0.5 rounded border border-zinc-700 text-zinc-400 hover:border-zinc-500 hover:text-white transition-colors shrink-0"
|
||||
>+ segment</a>
|
||||
{/if}
|
||||
</div>
|
||||
{#if descriptionHtml}
|
||||
<div class="text-zinc-400 mt-2 text-sm leading-relaxed [&_img]:rounded-lg [&_img]:my-2 [&_p]:my-1 [&_a]:text-blue-400">
|
||||
@@ -329,16 +335,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Create segment shortcut -->
|
||||
{#if trackUrl}
|
||||
<div class="mt-3 flex justify-end">
|
||||
<a
|
||||
href="{base}segments/new/?activity={activity.id}"
|
||||
class="text-xs px-3 py-1.5 rounded-lg border border-zinc-700 text-zinc-400 hover:border-zinc-500 hover:text-white transition-colors"
|
||||
>+ Create segment from this activity</a>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<!-- Charts -->
|
||||
{#if error}
|
||||
<p class="text-red-400 text-sm mt-4">{error}</p>
|
||||
|
||||
Reference in New Issue
Block a user