Skip to content

Commit a5f5a9b

Browse files
authored
Update Studio settings section (#4312)
1 parent efc7acf commit a5f5a9b

File tree

2 files changed

+40
-25
lines changed

2 files changed

+40
-25
lines changed

webview/src/setup/components/studio/Settings.tsx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,29 @@ export const Settings: React.FC<{
1818
<EmptyState isFullScreen={false}>
1919
<div>
2020
<h1>Studio Settings</h1>
21-
<p>
22-
Experiment metrics and plots logged with DVCLive <br />
23-
can be{' '}
24-
<a href="https://dvc.org/doc/studio/user-guide/projects-and-experiments/live-metrics-and-plots#send-and-view-live-metrics-and-plots">
25-
automatically shared to Studio
26-
</a>
27-
.
28-
</p>
29-
<p>
30-
<VSCodeCheckbox
31-
onClick={() => setShareLiveToStudio(!shareLiveToStudio)}
32-
checked={shareLiveToStudio}
33-
>
34-
Share New Experiments Live*
35-
</VSCodeCheckbox>
36-
</p>
37-
<p className={styles.smallFont}>
38-
*The checkbox reflects the{' '}
39-
<a href="https://dvc.org/doc/user-guide/project-structure/configuration#studio">
40-
studio.offline
41-
</a>{' '}
42-
config option.
43-
</p>
21+
<div className={styles.studioSettings}>
22+
<div className={styles.checkboxWrapper}>
23+
<VSCodeCheckbox
24+
onClick={() => setShareLiveToStudio(!shareLiveToStudio)}
25+
checked={shareLiveToStudio}
26+
className={styles.checkbox}
27+
>
28+
<p>Share Experiments</p>
29+
</VSCodeCheckbox>
30+
<p className={styles.checkboxDescription}>
31+
Toggling the checkbox updates the{' '}
32+
<a href="https://dvc.org/doc/user-guide/project-structure/configuration#studio">
33+
studio.offline
34+
</a>{' '}
35+
config option. Experiment metrics and plots logged with DVCLive
36+
are{' '}
37+
<a href="https://dvc.org/doc/studio/user-guide/projects-and-experiments/live-metrics-and-plots#send-and-view-live-metrics-and-plots">
38+
automatically shared to Studio
39+
</a>{' '}
40+
unless studio.offline is set.
41+
</p>
42+
</div>
43+
</div>
4444
<Button
4545
appearance="primary"
4646
isNested={false}
Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1-
.smallFont {
2-
font-size: 0.6rem;
1+
.studioSettings {
2+
display: 'flex';
3+
margin-top: -20px;
4+
}
5+
6+
.checkboxWrapper {
7+
text-align: left;
8+
margin: '0 auto';
9+
}
10+
11+
.checkbox {
12+
font-size: inherit;
13+
}
14+
15+
.checkboxDescription {
16+
font-size: 0.8rem;
17+
margin-top: -10px;
318
}

0 commit comments

Comments
 (0)