mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
minor chat styles
This commit is contained in:
parent
ffe5a41b01
commit
ef9d0daef4
4 changed files with 13 additions and 8 deletions
|
|
@ -377,7 +377,7 @@ class InlineDiffsService extends Disposable implements IInlineDiffsService {
|
|||
const { snapshottedDiffAreaOfId, entireFileCode: entireModelCode } = structuredClone(snapshot) // don't want to destroy the snapshot
|
||||
|
||||
// delete all current decorations (diffs, sweep styles) so we don't have any unwanted leftover decorations
|
||||
this._clearAllDiffsAndStyles(uri)
|
||||
this._clearAllDiffsAndAllStyles(uri)
|
||||
|
||||
// restore diffAreaOfId and diffAreasOfModelId
|
||||
this.diffAreaOfId = {}
|
||||
|
|
@ -436,7 +436,8 @@ class InlineDiffsService extends Disposable implements IInlineDiffsService {
|
|||
}
|
||||
}
|
||||
|
||||
private _clearAllDiffsAndStyles(uri: URI) {
|
||||
// clears styles of DiffAreas too
|
||||
private _clearAllDiffsAndAllStyles(uri: URI) {
|
||||
for (let diffareaid of this.diffAreasOfURI[uri.fsPath]) {
|
||||
const diffArea = this.diffAreaOfId[diffareaid]
|
||||
this._deleteDiffs(diffArea)
|
||||
|
|
@ -529,7 +530,7 @@ class InlineDiffsService extends Disposable implements IInlineDiffsService {
|
|||
if (content === null) return
|
||||
|
||||
// 1. clear Diffs and styles
|
||||
this._clearAllDiffsAndStyles(uri)
|
||||
this._clearAllDiffsAndAllStyles(uri)
|
||||
|
||||
// 2. recompute all diffs on each editor with this URI
|
||||
const fullFileText = this._readURI(uri) ?? ''
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ export const Sidebar = ({ className }: { className: string }) => {
|
|||
sidebarStateService.setState({ currentTab: tabs[(index + 1) % tabs.length] as any })
|
||||
}}>clickme {tab}</span> */}
|
||||
|
||||
<div className={`mb-2 w-full ${isHistoryOpen ? '' : 'hidden'}`}>
|
||||
<div className={`mb-2 w-full ${isHistoryOpen ? '' : 'hidden'} ring-2 ring-widget-shadow z-10`}>
|
||||
<ErrorBoundary>
|
||||
<SidebarThreadSelector />
|
||||
</ErrorBoundary>
|
||||
|
|
|
|||
|
|
@ -300,7 +300,7 @@ const ChatBubble = ({ chatMessage }: {
|
|||
}
|
||||
|
||||
return <div className={`${role === 'user' ? 'text-right' : 'text-left'}`}>
|
||||
<div className={`inline-block p-2 rounded-lg space-y-2 ${role === 'user' ? 'bg-vscode-input-bg text-vscode-input-fg' : ''} max-w-full overflow-auto`}>
|
||||
<div className={`text-left inline-block p-2 rounded-lg space-y-2 ${role === 'user' ? 'bg-vscode-input-bg text-vscode-input-fg' : ''} max-w-full overflow-auto`}>
|
||||
{chatbubbleContents}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ const normalizeIndentation = (code: string): string => {
|
|||
|
||||
export const VoidCodeEditor = ({ initValue, language }: { initValue: string, language: string | undefined }) => {
|
||||
|
||||
const MAX_HEIGHT = 200;
|
||||
const MAX_HEIGHT = Infinity;
|
||||
|
||||
const divRef = useRef<HTMLDivElement | null>(null)
|
||||
|
||||
|
|
@ -310,8 +310,8 @@ export const VoidCodeEditor = ({ initValue, language }: { initValue: string, lan
|
|||
|
||||
scrollbar: {
|
||||
alwaysConsumeMouseWheel: false,
|
||||
vertical: 'auto',
|
||||
horizontal: 'auto',
|
||||
vertical: 'hidden',
|
||||
horizontal: 'hidden',
|
||||
},
|
||||
scrollBeyondLastLine: false,
|
||||
|
||||
|
|
@ -335,6 +335,10 @@ export const VoidCodeEditor = ({ initValue, language }: { initValue: string, lan
|
|||
hideCursorInOverviewRuler: true,
|
||||
overviewRulerBorder: false,
|
||||
glyphMargin: false,
|
||||
|
||||
stickyScroll: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
isSimpleWidget: true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue