Skip to content

Commit

Permalink
ui tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlarsen committed Oct 2, 2023
1 parent b4f44b8 commit d864ab1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Workflow/WorkflowGUI.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function exportWorkflow(id: string) {

<InputBox v-if="creating" title="New Workflow" message="Enter the workflow name." @cancel="creating = false"
@confirm="addWorkflow($event)"/>
<div ref="leftPanel" class="box-border h-full w-64 shrink overflow-y-auto pr-2 text-right">
<div ref="leftPanel" class="box-border h-full w-48 shrink overflow-y-auto pr-2 text-right">
<button type="button" @click="creating = true"
class="mb-1 rounded-full bg-frost-4 p-1.5 text-white shadow-sm hover:bg-frost-1 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">
<PlusIcon class="h-5 w-5" aria-hidden="true"/>
Expand Down
22 changes: 13 additions & 9 deletions frontend/src/components/Workflow/WorkflowList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,23 @@ function renameWorkflow(name: string) {
</div>
</div>
<ul v-else class="block w-full flex-auto text-left">
<li v-for="flow in flows" :key="flow.id"
<li v-for="flow in flows" :key="flow.id" class="group"
:class="[flow.id === selected ? 'border-b border-frost-2 bg-polar-night-1': 'border-polar-night-3 hover:border-polar-night-4', 'flex w-full border-t']">
<a @click="emit('select', flow.id)"
class="my-1 block grow cursor-pointer pl-2">
class="my-1 block grow cursor-pointer truncate pl-2">
{{ flow.name }}
<p class="text-polar-night-4">{{ flow.id.substring(0, 18) }}</p>
<div class="flex items-center justify-between">
<div class="py-1 text-xs text-polar-night-4">{{ flow.id.substring(0, 8) }}</div>
<div class="hidden group-hover:flex">
<button class="shrink pr-2" @click="renaming = flow.id">
<PencilSquareIcon class="h-5 w-5 text-polar-night-4 hover:text-frost-1" aria-hidden="true"/>
</button>
<button class="shrink pr-2" @click="deleting = flow.id">
<TrashIcon class="h-4 w-4 text-polar-night-4 hover:text-aurora-1" aria-hidden="true"/>
</button>
</div>
</div>
</a>
<button class="shrink pr-2" @click="renaming = flow.id">
<PencilSquareIcon class="h-5 w-5 text-polar-night-4 hover:text-frost-1" aria-hidden="true"/>
</button>
<button class="shrink pr-2" @click="deleting = flow.id">
<TrashIcon class="h-5 w-5 text-polar-night-4 hover:text-aurora-1" aria-hidden="true"/>
</button>
</li>
</ul>
</div>
Expand Down

0 comments on commit d864ab1

Please sign in to comment.