Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drag bar relative problem #23

Merged
merged 5 commits into from
Mar 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat: add trag bar
  • Loading branch information
orangelckc committed Mar 19, 2023
commit 9807fca983b59ff24ea7f08483cc036515b2b643
3 changes: 1 addition & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ onMounted(async () => {

<template>
<div
class="frosted flex h-screen cursor-move flex-col overflow-hidden rounded-xl p-2"
class="frosted flex h-screen flex-col overflow-hidden rounded-xl p-2"
:class="[themeClass, windowFocused ? 'bordered' : 'bordered-transparent']"
data-tauri-drag-region
>
<div class="flex h-full items-center justify-center" v-if="isLoading">
<a-spin :size="50" :loading="true" />
Expand Down
10 changes: 8 additions & 2 deletions src/components/Session/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ watchEffect(() => {
</script>

<template>
<!-- TODO: 复制,一键发送,导出图片-->
<div ref="sessionElement" class="session flex-1 cursor-default overflow-auto">
<div
ref="sessionElement"
class="session relative flex-1 cursor-default overflow-auto"
>
<div
class="bg-gray/60 z-999 sticky top-2 m-auto h-3 w-80 cursor-move rounded-md opacity-0 hover:opacity-100"
data-tauri-drag-region
></div>
<template v-if="sessionDataList.length">
<div
:id="`session-${item.id}`"
Expand Down