mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-09 02:06:16 +02:00
fix(Chat): sidebar display
This commit is contained in:
parent
31c671bdb5
commit
029c2176f7
|
|
@ -71,47 +71,46 @@ export default function ChatSidebar({
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
<div className="p-4 flex flex-col items-center justify-center gap-y-2">
|
||||||
{sessions.length > 0 && (
|
<img src="/project_nomad_logo.png" alt="Project Nomad Logo" className="h-28 w-28 mb-6" />
|
||||||
<div className="p-4 flex flex-col items-center justify-center gap-y-2">
|
<StyledButton
|
||||||
<img src="/project_nomad_logo.png" alt="Project Nomad Logo" className="h-28 w-28 mb-6" />
|
onClick={() => {
|
||||||
<StyledButton
|
if (isInModal) {
|
||||||
onClick={() => {
|
window.open('/chat', '_blank')
|
||||||
if (isInModal) {
|
} else {
|
||||||
window.open('/chat', '_blank')
|
router.visit('/home')
|
||||||
} else {
|
}
|
||||||
router.visit('/home')
|
}}
|
||||||
}
|
icon={isInModal ? 'IconExternalLink' : 'IconHome'}
|
||||||
}}
|
variant="outline"
|
||||||
icon={isInModal ? 'IconExternalLink' : 'IconHome'}
|
size="sm"
|
||||||
variant="outline"
|
fullWidth
|
||||||
size="sm"
|
>
|
||||||
fullWidth
|
{isInModal ? 'Open in New Tab' : 'Back to Home'}
|
||||||
>
|
</StyledButton>
|
||||||
{isInModal ? 'Open in New Tab' : 'Back to Home'}
|
<StyledButton
|
||||||
</StyledButton>
|
onClick={() => {
|
||||||
<StyledButton
|
router.visit('/settings/models')
|
||||||
onClick={() => {
|
}}
|
||||||
router.visit('/settings/models')
|
icon="IconDatabase"
|
||||||
}}
|
variant="primary"
|
||||||
icon="IconDatabase"
|
size="sm"
|
||||||
variant="primary"
|
fullWidth
|
||||||
size="sm"
|
>
|
||||||
fullWidth
|
Models
|
||||||
>
|
</StyledButton>
|
||||||
Models
|
<StyledButton
|
||||||
</StyledButton>
|
onClick={() => {
|
||||||
<StyledButton
|
router.visit('/knowledge-base')
|
||||||
onClick={() => {
|
}}
|
||||||
router.visit('/knowledge-base')
|
icon="IconBrain"
|
||||||
}}
|
variant="primary"
|
||||||
icon="IconBrain"
|
size="sm"
|
||||||
variant="primary"
|
fullWidth
|
||||||
size="sm"
|
>
|
||||||
fullWidth
|
Knowledge Base
|
||||||
>
|
</StyledButton>
|
||||||
Knowledge Base
|
{sessions.length > 0 && (
|
||||||
</StyledButton>
|
|
||||||
<StyledButton
|
<StyledButton
|
||||||
onClick={onClearHistory}
|
onClick={onClearHistory}
|
||||||
icon="IconTrash"
|
icon="IconTrash"
|
||||||
|
|
@ -121,8 +120,8 @@ export default function ChatSidebar({
|
||||||
>
|
>
|
||||||
Clear History
|
Clear History
|
||||||
</StyledButton>
|
</StyledButton>
|
||||||
</div>
|
)}
|
||||||
)}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user