Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
suryanshkushwaha committed Nov 11, 2024
1 parent 95d706e commit c718349
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions peerprep/frontend/src/styles/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -656,3 +656,7 @@ input {
height: 100%;
width: 100%;
}

.CodeMirror-cursor{
height: 19px !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ const CollaborationServiceIntegratedView: React.FC = () => {
<GripVertical className="text-gray-400" size={40} />
</div>

<div className="right-pane flex-1 h-full">
<div className="right-pane flex-1 h-full" style={{width: `${100- leftPaneWidth}%`}}>
<div className="coding-area flex flex-col rounded-md border border-gray-200" style={{ height: `${codeEditorHeight}%` }}>
<div className="top-portion flex-none px-2 py-1 flex items-center bg-slate-200 justify-between">
<div className='flex-none gap-1 flex'>
Expand Down Expand Up @@ -455,11 +455,11 @@ const CollaborationServiceIntegratedView: React.FC = () => {
</div>

<div className=" output-section border border-gray-200 rounded-md overflow-auto"
style={{ height: `${99 - codeEditorHeight}%` }}
style={{ height: `calc(${100 - codeEditorHeight}% - 8px)` }}
>
<div className="p-4">
<h3 className="text-sm font-medium text-gray-900 mb-2">Output</h3>
<pre className="bg-white rounded-md p-4 text-sm text-gray-700 font-mono">{output}</pre>
<pre className="bg-white rounded-md p-4 text-sm text-gray-700 font-mono whitespace-pre-wrap break-words">{output}</pre>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,13 @@ const Chat: React.FC<ChatProps> = ({ sessionId }) => {
{messages.map((msg, index) => (<>
<div
key={index}
className={`message max-w-[60%] rounded-md h-fit px-2 py-px ${msg.sender ? 'bg-green-200 self-end text-right' : 'bg-gray-200 self-start text-left'
className={`message max-w-[70%] w-fit rounded-md h-fit px-2 py-px ${msg.sender ? 'bg-green-200 self-end text-right' : 'bg-gray-200 self-start text-left'
}`}
style={{
wordBreak: 'break-word',
overflowWrap: 'break-word',
whiteSpace: 'pre-wrap'
}}
>
{msg.text}
</div>
Expand Down

0 comments on commit c718349

Please sign in to comment.