-
Notifications
You must be signed in to change notification settings - Fork 649
fix: restore the ThinkContent component to its previous markup and styling so the timer text behaves as before #987
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
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 | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,26 +6,31 @@ | |||||||||||||||||||||||||||||||||
| enter-from-class="opacity-0" | ||||||||||||||||||||||||||||||||||
| leave-to-class="opacity-0" | ||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||
| <div v-if="chatStore.isSidebarOpen" class="fixed inset-0 z-50" :dir="langStore.dir"> | ||||||||||||||||||||||||||||||||||
| <div class="absolute inset-0 bg-transparent" @click="closeSidebar"></div> | ||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||
| class="relative h-full flex" | ||||||||||||||||||||||||||||||||||
| :class="langStore.dir === 'rtl' ? 'justify-end' : 'justify-start'" | ||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||
| v-if="chatStore.isSidebarOpen" | ||||||||||||||||||||||||||||||||||
| class="fixed inset-0 z-50 flex" | ||||||||||||||||||||||||||||||||||
| :class="langStore.dir === 'rtl' ? 'justify-end' : 'justify-start'" | ||||||||||||||||||||||||||||||||||
| :dir="langStore.dir" | ||||||||||||||||||||||||||||||||||
| @click.self="closeSidebar" | ||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||
| <Transition | ||||||||||||||||||||||||||||||||||
| enter-active-class="transition-transform duration-200 ease-out" | ||||||||||||||||||||||||||||||||||
| leave-active-class="transition-transform duration-150 ease-in" | ||||||||||||||||||||||||||||||||||
| :enter-from-class="langStore.dir === 'rtl' ? 'translate-x-full' : '-translate-x-full'" | ||||||||||||||||||||||||||||||||||
| :leave-to-class="langStore.dir === 'rtl' ? 'translate-x-full' : '-translate-x-full'" | ||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||
| <Transition | ||||||||||||||||||||||||||||||||||
| enter-active-class="transition-transform duration-200 ease-out" | ||||||||||||||||||||||||||||||||||
| leave-active-class="transition-transform duration-150 ease-in" | ||||||||||||||||||||||||||||||||||
| :enter-from-class="langStore.dir === 'rtl' ? 'translate-x-full' : '-translate-x-full'" | ||||||||||||||||||||||||||||||||||
| :leave-to-class="langStore.dir === 'rtl' ? 'translate-x-full' : '-translate-x-full'" | ||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||
| v-if="chatStore.isSidebarOpen" | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+22
to
+23
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. Redundant v-if may break the inner Transition animation. The inner div has Apply this diff to remove the redundant v-if: <Transition
enter-active-class="transition-transform duration-200 ease-out"
leave-active-class="transition-transform duration-150 ease-in"
:enter-from-class="langStore.dir === 'rtl' ? 'translate-x-full' : '-translate-x-full'"
:leave-to-class="langStore.dir === 'rtl' ? 'translate-x-full' : '-translate-x-full'"
>
<div
- v-if="chatStore.isSidebarOpen"
:class="[
'h-full w-60 max-w-60 shadow-lg bg-card',
langStore.dir === 'rtl' ? 'border-l' : 'border-r',
'border-border'
]"
@click.stop
>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||
| :class="[ | ||||||||||||||||||||||||||||||||||
| 'h-full w-60 max-w-60 shadow-lg bg-card', | ||||||||||||||||||||||||||||||||||
| langStore.dir === 'rtl' ? 'border-l' : 'border-r', | ||||||||||||||||||||||||||||||||||
| 'border-border' | ||||||||||||||||||||||||||||||||||
| ]" | ||||||||||||||||||||||||||||||||||
| @click.stop | ||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||
| v-if="chatStore.isSidebarOpen" | ||||||||||||||||||||||||||||||||||
| class="h-full w-60 max-w-60 shadow-lg border-r border-border bg-card" | ||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||
| <ThreadsView class="h-full" /> | ||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||
| </Transition> | ||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||
| <ThreadsView class="h-full" /> | ||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||
| </Transition> | ||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+9
to
34
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. Missing accessibility attributes for modal-like sidebar. The sidebar overlay is missing essential accessibility features:
These omissions make the sidebar difficult to use with screen readers and keyboard navigation. As per coding guidelines on accessibility best practices. 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||
| </Transition> | ||||||||||||||||||||||||||||||||||
| </Teleport> | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
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.
Missing backdrop overlay styling.
The outer container acts as a clickable backdrop but has no visual styling (e.g., semi-transparent background). Users won't see a clear overlay indicating the sidebar is modal.
Apply this diff to add a semi-transparent backdrop:
<div v-if="chatStore.isSidebarOpen" - class="fixed inset-0 z-50 flex" + class="fixed inset-0 z-50 flex bg-black/50" :class="langStore.dir === 'rtl' ? 'justify-end' : 'justify-start'" :dir="langStore.dir" @click.self="closeSidebar" >📝 Committable suggestion
🤖 Prompt for AI Agents