mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
fix: fix Windows sidebar button cursor style
This commit is contained in:
parent
4b22aa819c
commit
9c3f54cf1c
1 changed files with 9 additions and 3 deletions
|
|
@ -442,6 +442,8 @@
|
||||||
|
|
||||||
await tick();
|
await tick();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const isWindows = /Windows/i.test(navigator.userAgent);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ArchivedChatsModal
|
<ArchivedChatsModal
|
||||||
|
|
@ -515,7 +517,7 @@
|
||||||
id="sidebar"
|
id="sidebar"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
class="flex flex-col flex-1 cursor-[e-resize]"
|
class="flex flex-col flex-1 {isWindows ? 'cursor-pointer' : 'cursor-[e-resize]'}"
|
||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
showSidebar.set(!$showSidebar);
|
showSidebar.set(!$showSidebar);
|
||||||
}}
|
}}
|
||||||
|
|
@ -526,7 +528,9 @@
|
||||||
placement="right"
|
placement="right"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
class=" flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition group cursor-[e-resize]"
|
class="flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition group {isWindows
|
||||||
|
? 'cursor-pointer'
|
||||||
|
: 'cursor-[e-resize]'}"
|
||||||
>
|
>
|
||||||
<div class=" self-center flex items-center justify-center size-9">
|
<div class=" self-center flex items-center justify-center size-9">
|
||||||
<img
|
<img
|
||||||
|
|
@ -721,7 +725,9 @@
|
||||||
placement="bottom"
|
placement="bottom"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
class=" flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition cursor-[w-resize]"
|
class="flex rounded-lg hover:bg-gray-100 dark:hover:bg-gray-850 transition {isWindows
|
||||||
|
? 'cursor-pointer'
|
||||||
|
: 'cursor-[w-resize]'}"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
showSidebar.set(!$showSidebar);
|
showSidebar.set(!$showSidebar);
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue