aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2022-05-27 01:12:46 -0500
committerJP Dillingham <jpdillingham@gmail.com>2022-05-27 01:12:46 -0500
commit21c08b38f13d5ae8a039e1aab5bc5c52508f06b8 (patch)
tree247805cae2fbecd029ca8d5adebc583062d2e568 /src
parentc9faf80c4988ef52fb2047763f455e7c30f4bbaf (diff)
downloadslskd-21c08b38f13d5ae8a039e1aab5bc5c52508f06b8.tar.gz
set minimum height of editor, show loader while rescanning
Diffstat (limited to 'src')
-rw-r--r--src/web/src/components/System/Info/index.js13
-rw-r--r--src/web/src/components/System/Options/DebugModal.js13
-rw-r--r--src/web/src/components/System/Options/EditModal.js1
-rw-r--r--src/web/src/components/System/Options/index.js13
-rw-r--r--src/web/src/components/System/Shares/index.js3
5 files changed, 21 insertions, 22 deletions
diff --git a/src/web/src/components/System/Info/index.js b/src/web/src/components/System/Info/index.js
index f640716e..d1b504e2 100644
--- a/src/web/src/components/System/Info/index.js
+++ b/src/web/src/components/System/Info/index.js
@@ -60,13 +60,12 @@ const Info = ({ state }) => {
/>
</div>
<Divider/>
- <div className='view-code-container'>
- <CodeEditor
- value={stateAsYaml}
- basicSetup={false}
- editable={false}
- />
- </div>
+ <CodeEditor
+ style={{minHeight: 500}}
+ value={stateAsYaml}
+ basicSetup={false}
+ editable={false}
+ />
</>
);
};
diff --git a/src/web/src/components/System/Options/DebugModal.js b/src/web/src/components/System/Options/DebugModal.js
index 2f01eb16..21514c57 100644
--- a/src/web/src/components/System/Options/DebugModal.js
+++ b/src/web/src/components/System/Options/DebugModal.js
@@ -47,13 +47,12 @@ const DebugModal = ({ open, onClose }) => {
<Switch
loading={loading && <PlaceholderSegment loading={true} />}
>
- <div className='view-code-container'>
- <CodeEditor
- value={debugView}
- basicSetup={false}
- editable={false}
- />
- </div>
+ <CodeEditor
+ style={{minHeight: 500}}
+ value={debugView}
+ basicSetup={false}
+ editable={false}
+ />
</Switch>
</Modal.Content>
<Modal.Actions>
diff --git a/src/web/src/components/System/Options/EditModal.js b/src/web/src/components/System/Options/EditModal.js
index b02cbf99..cfcbd3b6 100644
--- a/src/web/src/components/System/Options/EditModal.js
+++ b/src/web/src/components/System/Options/EditModal.js
@@ -80,6 +80,7 @@ const EditModal = ({ open, onClose }) => {
{...{ className: (yamlError || updateError) ? 'edit-code-container-error' : 'edit-code-container' }}
>
<CodeEditor
+ style={{minHeight: 500}}
value={yaml}
onChange={(value) => update(value)}
/>
diff --git a/src/web/src/components/System/Options/index.js b/src/web/src/components/System/Options/index.js
index 894199e9..afc1f545 100644
--- a/src/web/src/components/System/Options/index.js
+++ b/src/web/src/components/System/Options/index.js
@@ -54,13 +54,12 @@ const Index = ({ options }) => {
<EditButton/>
</div>
<Divider/>
- <div className='view-code-container'>
- <CodeEditor
- value={optionsAsYaml}
- basicSetup={false}
- editable={false}
- />
- </div>
+ <CodeEditor
+ style={{minHeight: 500}}
+ value={optionsAsYaml}
+ basicSetup={false}
+ editable={false}
+ />
<DebugModal
open={debugModal}
onClose={() => setDebugModal(false)}
diff --git a/src/web/src/components/System/Shares/index.js b/src/web/src/components/System/Shares/index.js
index ff054a97..6ede4cbc 100644
--- a/src/web/src/components/System/Shares/index.js
+++ b/src/web/src/components/System/Shares/index.js
@@ -88,7 +88,7 @@ const Index = ({ state }) => {
</div>
<Divider/>
<Switch
- filling={loading && <LoaderSegment caption={fillProgress}/>}
+ filling={(loading || filling) && <LoaderSegment caption={fillProgress}/>}
>
<Table size='large'>
<Table.Header>
@@ -134,6 +134,7 @@ const Index = ({ state }) => {
<Modal.Header><Icon name='folder'/>{modal.localPath}</Modal.Header>
<Modal.Content scrolling className='share-ls-content'>
<CodeEditor
+ style={{minHeight: 500}}
value={modal.contents}
basicSetup={false}
editable={false}