mirror of
https://github.com/open-webui/open-webui
synced 2025-01-19 09:16:44 +00:00
refac: styling
This commit is contained in:
parent
8b3fb2a8b5
commit
2aa82d98cc
@ -145,9 +145,12 @@
|
|||||||
|
|
||||||
{#if onAdd}
|
{#if onAdd}
|
||||||
<button
|
<button
|
||||||
class="absolute z-10 right-2 self-center flex items-center"
|
class="absolute z-10 right-2 invisible group-hover:visible self-center flex items-center dark:text-gray-300"
|
||||||
on:pointerup={(e) => {
|
on:pointerup={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
}}
|
||||||
|
on:click={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
onAdd();
|
onAdd();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
@ -597,11 +597,15 @@
|
|||||||
className="px-2 mt-0.5"
|
className="px-2 mt-0.5"
|
||||||
name={$i18n.t('Channels')}
|
name={$i18n.t('Channels')}
|
||||||
dragAndDrop={false}
|
dragAndDrop={false}
|
||||||
onAdd={$user.role === 'admin'
|
onAdd={async () => {
|
||||||
? () => {
|
if ($user.role === 'admin') {
|
||||||
|
await tick();
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
showCreateChannel = true;
|
showCreateChannel = true;
|
||||||
}
|
}, 0);
|
||||||
: null}
|
}
|
||||||
|
}}
|
||||||
onAddLabel={$i18n.t('Create Channel')}
|
onAddLabel={$i18n.t('Create Channel')}
|
||||||
>
|
>
|
||||||
{#each $channels as channel}
|
{#each $channels as channel}
|
||||||
|
Loading…
Reference in New Issue
Block a user