feat: revamp collections ui

This commit is contained in:
liyasthomas
2021-07-08 13:00:41 +05:30
parent 6635d449a5
commit 207dc2b6a6
29 changed files with 821 additions and 579 deletions

View File

@@ -28,7 +28,14 @@
:icon="expand ? 'unfold_less' : 'unfold_more'"
@click.native="expand = !expand"
/>
<tippy ref="options" tabindex="-1" trigger="click" theme="popover" arrow>
<tippy
ref="options"
interactive
tabindex="-1"
trigger="click"
theme="popover"
arrow
>
<template #trigger>
<TabPrimary
v-tippy="{ theme: 'tooltip' }"

View File

@@ -1,11 +1,11 @@
<template>
<AppSection label="history">
<div class="flex sticky top-10 shadow-sm">
<div class="flex sticky top-10 border-b border-dividerLight">
<input
v-model="filterText"
aria-label="Search"
type="search"
class="px-4 py-2 text-xs flex flex-1 focus:outline-none border-divider"
class="px-4 py-3 text-xs flex flex-1 bg-primary focus:outline-none"
:placeholder="$t('search')"
/>
<ButtonSecondary

View File

@@ -1,5 +1,5 @@
<template>
<div class="flex group">
<div class="flex items-center group">
<span
class="
font-mono font-bold
@@ -10,14 +10,26 @@
w-12
mx-2
truncate
cursor-pointer
"
:class="entryStatus.className"
:style="{ '--status-code': entry.status }"
@click="$emit('use-entry')"
>
{{ entry.method }}
</span>
<span class="py-3 pr-3 flex flex-1 min-w-0 text-secondaryLight text-xs">
<span
class="
py-3
cursor-pointer
pr-3
flex flex-1
min-w-0
text-secondaryLight text-xs
group-hover:text-secondary
transition
"
@click="$emit('use-entry')"
>
<span class="truncate">
{{ `${entry.url}${entry.path}` }}
</span>