Skip to content

Commit

Permalink
pre sas
Browse files Browse the repository at this point in the history
  • Loading branch information
irdkwmnsb committed May 15, 2024
1 parent a4902d7 commit 3dad14c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/App.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ html, body {
cursor: pointer;
box-sizing: border-box;
border-top: 1px #c3c3c3 solid;
button {
margin-right: 5px;
}
&:last-child {
border-bottom: 1px #c3c3c3 solid;
}
Expand Down
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ const App = ({ manifest, store }: AppProps) => {
return <div className={styles.app}>
<div className={styles.header}>
<a onClick={(_) => history.back()}>&larr; Go back</a>
<h1>{manifest.nameRu}</h1>
<article>{manifest.descriptionRu}</article>
<h1>{manifest.nameEn}</h1>
<article>{manifest.descriptionEn}</article>
<section className={styles.tabSwitcher}>
<button onClick={() => setCurTab(Tab.Starter)}>Starter</button>
<button onClick={() => setCurTab(Tab.Render)} disabled={!isRunning}>Render</button>
Expand Down
7 changes: 6 additions & 1 deletion src/visualizers/k-means/start.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ export const BubbleSortStarter = ({ doStart }: StartProps<KMeansArguments>) => {
doStart([k, X], fullRun)
}, [k])

return <div>
return <div style={{
display: "flex",
flexDirection: "column",
gap: "3px",
padding: "5px"
}}>
<label>
Cluster K:
<input type="number" name="k" value={k} onChange={(ev) => setK(parseInt(ev.target.value))}/>
Expand Down

0 comments on commit 3dad14c

Please sign in to comment.