Skip to content

Commit

Permalink
Revert console layout change (fixes scrollbar).
Browse files Browse the repository at this point in the history
Reformat uploadButton a little.
  • Loading branch information
retrixe committed Jun 6, 2022
1 parent 2a2353c commit 3b86038
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion imports/dashboard/files/uploadButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import React, { useState, useEffect } from 'react'
import { IconButton, Tooltip } from '@mui/material'
import CloudUpload from '@mui/icons-material/CloudUpload'

const UploadButton = ({ uploadFiles, disabled }: { uploadFiles: (files: FileList) => void, disabled: boolean }) => {
const UploadButton = ({ uploadFiles, disabled }: {
uploadFiles: (files: FileList) => void
disabled: boolean
}) => {
const [files, setFiles] = useState<null | FileList>(null)
useEffect(() => {
if (files) {
Expand Down
4 changes: 2 additions & 2 deletions pages/dashboard/[server]/console.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ const Console = ({ setAuthenticated }: {
return !listening
? <ConnectionFailure loading={listening === null} />
: (
<Paper style={{ padding: 20, flex: 1, display: 'flex', flexDirection: 'column' }}>
<Paper style={{ padding: 20 }}>
<Typography variant='h5' gutterBottom>Console - {server}</Typography>
<Paper variant='outlined' style={{ flex: 1, padding: 10, color, ...terminalUi }}>
<Paper variant='outlined' style={{ height: '60vh', padding: 10, color, ...terminalUi }}>
<ConsoleView console={consoleText} />
</Paper>
<CommandTextField ws={ws} buffer={buffer} id={id} />
Expand Down

0 comments on commit 3b86038

Please sign in to comment.