Skip to content

Commit ed83b67

Browse files
authored
styling(connect-form): add divider, tweak tabs overflow (#236)
1 parent 5469799 commit ed83b67

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

src/views/webview-app/components/connect-form/connection-form.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
padding: 0;
2727
margin: 0;
2828
margin-top: 10px;
29-
overflow: hidden;
3029
}
3130

3231
.connection-form-tab {
@@ -75,6 +74,7 @@
7574
height: 4px;
7675
left: -1px;
7776
right: -1px;
77+
margin-bottom: -1px;
7878
pointer-events: none;
7979
outline: none;
8080
background-color: @green;

src/views/webview-app/components/connect-form/general-tab/general-tab.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as React from 'react';
22

3+
import Divider from '../../form/divider/divider';
34
import HostInput from './host/host';
45
import Authentication from './authentication/authentication';
56

@@ -8,6 +9,7 @@ export class GeneralTab extends React.Component {
89
return (
910
<React.Fragment>
1011
<HostInput />
12+
<Divider />
1113
<Authentication />
1214
</React.Fragment>
1315
);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
.form-divider {
3+
background-color: rgba(75, 75, 75, 0.5);
4+
height: 1px;
5+
margin: 0;
6+
margin-top: 24px;
7+
margin-bottom: 24px;
8+
padding: 0;
9+
width: 100%;
10+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import * as React from 'react';
2+
3+
import styles from './divider.less';
4+
5+
export class Divider extends React.Component {
6+
render(): React.ReactNode {
7+
return (
8+
<div className={styles['form-divider']} />
9+
);
10+
}
11+
}
12+
13+
export default Divider;

0 commit comments

Comments
 (0)