Skip to content

Commit

Permalink
feat: disable smooth scrolling for logs and default to select restart…
Browse files Browse the repository at this point in the history
… services (#1612)

## Description:
disable smooth scrolling for logs and default to select restart services

## Is this change user facing?
YES

## References (if applicable):
<!-- Add relevant Github Issues, Discord threads, or other helpful
information. -->
  • Loading branch information
adschwartz authored Oct 24, 2023
1 parent 1a9d953 commit 2ee86c4
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion engine/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion engine/frontend/src/component/PackageCatalogForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ const PackageCatalogForm = ({createEnclave, mode}) => {
const {state} = location;
const [runningPackage, setRunningPackage] = useState(false)
const [enclaveName, setEnclaveName] = useState("")
const [productionMode, setProductionMode] = useState(false)
const [productionMode, setProductionMode] = useState(true)
const [thisKurtosisPackage, setThisKurtosisPackage] = useState({})
const [formData, setFormData] = useState({})
const [errorData, setErrorData] = useState({})
Expand Down
4 changes: 3 additions & 1 deletion engine/frontend/src/component/log/Log.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export const Log = ({logs, fileName, currentExecutionStatus, executionStatusText

const handleScrollToBottom = () => {
virtuosoRef.current.scrollToIndex({
index: displayLogs.length - 1, behavior: 'smooth', align: "end"
index: displayLogs.length - 1,
behavior: 'auto',
align: "end",
});
}

Expand Down
6 changes: 3 additions & 3 deletions engine/server/webapp/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"files": {
"main.css": "./static/css/main.2cce5778.css",
"main.js": "./static/js/main.e15c6be0.js",
"main.js": "./static/js/main.7c3e575c.js",
"index.html": "./index.html",
"main.2cce5778.css.map": "./static/css/main.2cce5778.css.map",
"main.e15c6be0.js.map": "./static/js/main.e15c6be0.js.map"
"main.7c3e575c.js.map": "./static/js/main.7c3e575c.js.map"
},
"entrypoints": [
"static/css/main.2cce5778.css",
"static/js/main.e15c6be0.js"
"static/js/main.7c3e575c.js"
]
}
2 changes: 1 addition & 1 deletion engine/server/webapp/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Kurtosis Enclave Manager</title><script defer="defer" src="./static/js/main.e15c6be0.js"></script><link href="./static/css/main.2cce5778.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><title>Kurtosis Enclave Manager</title><script defer="defer" src="./static/js/main.7c3e575c.js"></script><link href="./static/css/main.2cce5778.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 2ee86c4

Please sign in to comment.