-
Notifications
You must be signed in to change notification settings - Fork 8.3k
chore: 新增和优化一些组件功能,详见提交信息 #6830
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
Changes from all commits
2b00795
32051e9
4e264c5
52d3aa9
6a89814
08b6e77
8edea3a
38f91da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,7 +50,7 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } = | |
| <AuthenticationFormView | ||
| v-if="authPanelLeft" | ||
| class="min-h-full w-2/5 flex-1" | ||
| transition-name="slide-left" | ||
| data-side="left" | ||
| > | ||
| <template v-if="copyright" #copyright> | ||
| <slot name="copyright"> | ||
|
|
@@ -86,7 +86,14 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } = | |
| class="bg-background-deep absolute inset-0 h-full w-full dark:bg-[#070709]" | ||
| > | ||
| <div class="login-background absolute left-0 top-0 size-full"></div> | ||
| <div class="flex-col-center -enter-x mr-20 h-full"> | ||
| <div | ||
| :key="authPanelLeft ? 'left' : authPanelRight ? 'right' : 'center'" | ||
| class="flex-col-center mr-20 h-full" | ||
| :class="{ | ||
| 'enter-x': authPanelLeft, | ||
| '-enter-x': authPanelRight, | ||
| }" | ||
| > | ||
| <template v-if="sloganImage"> | ||
| <img | ||
| :alt="appName" | ||
|
|
@@ -110,6 +117,7 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } = | |
| <div class="login-background absolute left-0 top-0 size-full"></div> | ||
| <AuthenticationFormView | ||
| class="md:bg-background shadow-primary/5 shadow-float w-full rounded-3xl pb-20 md:w-2/3 lg:w-1/2 xl:w-[36%]" | ||
| data-side="bottom" | ||
| > | ||
| <template v-if="copyright" #copyright> | ||
| <slot name="copyright"> | ||
|
|
@@ -125,7 +133,8 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } = | |
| <!-- 右侧认证面板 --> | ||
| <AuthenticationFormView | ||
| v-if="authPanelRight" | ||
| class="min-h-full w-[34%] flex-1" | ||
| class="min-h-full w-2/5 flex-1" | ||
| data-side="right" | ||
|
Comment on lines
+136
to
+137
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainRight panel width + data-side LGTM; verify breakpoints. w-2/5 changes layout density; quickly validate on common breakpoints (sm/md/lg). 🏁 Script executed: #!/bin/bash
# Grep for any conflicting width utilities around auth panels
rg -n -C2 -S $'AuthenticationFormView|w-2/5|w-1/2|w-1/3' --type=vueLength of output: 27 I need to correct the shell script approach since the 🏁 Script executed: #!/bin/bash
# Find the authentication.vue file
fd -e vue authentication
# If found, examine the file content around lines 136-137
if fd -e vue authentication | grep -q .; then
cat "packages/effects/layouts/src/authentication/authentication.vue" | head -150 | tail -30
fiLength of output: 798 🏁 Script executed: #!/bin/bash
# Broader search for width utilities in Vue files (Tailwind classes)
rg -n 'w-2/5|w-1/2|w-1/3|flex-1|sm:w-|md:w-|lg:w-' packages/effects/layouts/src/authentication/ || echo "Search completed with no matches or directory not found"Length of output: 1222 Missing responsive breakpoint utilities on side panels. The right panel at line 136 uses Compare against the center form at line 119, which properly implements responsive widths: Recommend applying responsive variants to both panels, e.g., 🤖 Prompt for AI Agents |
||
| > | ||
| <template v-if="copyright" #copyright> | ||
| <slot name="copyright"> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Icon state is bound to availability, not collapse; mobile handler only opens
showSidebar(availability) instead of collapsed state, so it can display “fold” even when the sidebar is already collapsed, especially on mobile.handleHeaderToggleonly opens (sidebarCollapse = false), so clicking again won’t close, while the “fold” icon suggests it would.Fix by binding the icon to
sidebarCollapseand truly toggling on mobile:And update the handler to actually toggle on mobile:
@@ function handleHeaderToggle() { - if (props.isMobile) { - sidebarCollapse.value = false; - } else { + if (props.isMobile) { + sidebarCollapse.value = !sidebarCollapse.value; + } else { emit('toggleSidebar'); - } + } }Also applies to: 562-564
🤖 Prompt for AI Agents