mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-12 13:35:21 +00:00
commit
91eaf1c786
@ -4,7 +4,8 @@
|
|||||||
<!-- LEFT SIDE PANEL -->
|
<!-- LEFT SIDE PANEL -->
|
||||||
<div class="z-10 sticky top-0 flex-col bg-bg-light-tone dark:bg-bg-dark-tone shadow-md">
|
<div class="z-10 sticky top-0 flex-col bg-bg-light-tone dark:bg-bg-dark-tone shadow-md">
|
||||||
<!-- SEARCH BAR -->
|
<!-- SEARCH BAR -->
|
||||||
<form class="flex-row p-4 items-center gap-3 flex-0 w-full">
|
<div class="flex-row pt-2 items-center gap-3 flex-0 w-full">
|
||||||
|
<div v-if="isSearch" class="px-4 pb-2 pt-2">
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
|
<div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
|
||||||
<div class="scale-75">
|
<div class="scale-75">
|
||||||
@ -23,10 +24,11 @@
|
|||||||
placeholder="Search..." title="Filter discussions by title" v-model="filterTitle"
|
placeholder="Search..." title="Filter discussions by title" v-model="filterTitle"
|
||||||
@input="filterDiscussions()" />
|
@input="filterDiscussions()" />
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- CONTROL PANEL -->
|
<!-- CONTROL PANEL -->
|
||||||
<div class="flex-row p-4 pt-0 flex items-center gap-3 flex-0">
|
<div class="flex-row p-4 pt-2 flex items-center gap-3 flex-0">
|
||||||
|
|
||||||
<!-- MAIN BUTTONS -->
|
<!-- MAIN BUTTONS -->
|
||||||
<button class="text-2xl hover:text-secondary duration-75 active:scale-90" title="Create new discussion"
|
<button class="text-2xl hover:text-secondary duration-75 active:scale-90" title="Create new discussion"
|
||||||
@ -45,6 +47,10 @@
|
|||||||
type="button">
|
type="button">
|
||||||
<i data-feather="database"></i>
|
<i data-feather="database"></i>
|
||||||
</button>
|
</button>
|
||||||
|
<button class="text-2xl hover:text-secondary duration-75 active:scale-90" title="Filter discussions"
|
||||||
|
type="button" @click="isSearch = !isSearch">
|
||||||
|
<i data-feather="search"></i>
|
||||||
|
</button>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<hr v-if="isCheckbox" class="h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark">
|
<hr v-if="isCheckbox" class="h-px bg-bg-light p-0 mb-4 px-4 mx-4 border-0 dark:bg-bg-dark">
|
||||||
@ -157,7 +163,8 @@ export default {
|
|||||||
isSelectAll: false,
|
isSelectAll: false,
|
||||||
showConfirmation: false,
|
showConfirmation: false,
|
||||||
chime: new Audio("chime_aud.wav"),
|
chime: new Audio("chime_aud.wav"),
|
||||||
isCopiedToClipboard: false
|
isCopiedToClipboard: false,
|
||||||
|
isSearch: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -802,6 +809,12 @@ export default {
|
|||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
isSearch() {
|
||||||
|
nextTick(() => {
|
||||||
|
feather.replace()
|
||||||
|
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user