-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into feature/markdown_te…
…am_desc
- Loading branch information
Showing
15 changed files
with
391 additions
and
426 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.52 KB
(120%)
.creevey/images/SubscriptionList/FewChannelsForSubscription/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.49 KB
(120%)
.creevey/images/SubscriptionList/WithDisabledItem/chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...ts/TriggerEditForm/EditDescritionHelp.tsx → ...ditForm/Components/EditDescritionHelp.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.form { | ||
max-width: 800px; | ||
} | ||
|
||
.label { | ||
flex-shrink: 0; | ||
width: 150px; | ||
} | ||
|
||
.label-for-group { | ||
align-self: flex-start; | ||
padding-top: 7px; | ||
} | ||
|
||
.row { | ||
display: flex; | ||
align-items: baseline; | ||
margin-bottom: 15px; | ||
|
||
textarea { | ||
vertical-align: top; | ||
} | ||
} | ||
|
||
.control { | ||
margin-left: auto; | ||
width: calc(~'100% - 150px'); | ||
} | ||
|
||
.group { | ||
display: flex; | ||
align-items: center; | ||
|
||
& > * { | ||
margin-right: 5px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React from "react"; | ||
import classNames from "classnames/bind"; | ||
|
||
import styles from "./Form.less"; | ||
|
||
const cn = classNames.bind(styles); | ||
|
||
interface IFormProps { | ||
children: React.ReactNode; | ||
} | ||
|
||
export function Form({ children }: IFormProps): React.ReactElement { | ||
return <div className={cn("form")}>{children}</div>; | ||
} | ||
|
||
interface IFormRowProps { | ||
label?: string; | ||
useTopAlignForLabel?: boolean; | ||
singleLineControlGroup?: boolean; | ||
style?: { | ||
[key: string]: number | string; | ||
}; | ||
children: React.ReactNode; | ||
} | ||
|
||
export function FormRow({ | ||
label, | ||
useTopAlignForLabel, | ||
singleLineControlGroup, | ||
children, | ||
style, | ||
}: IFormRowProps): React.ReactElement { | ||
const labelElement = label && ( | ||
<div className={cn("label", { "label-for-group": useTopAlignForLabel })}>{label}</div> | ||
); | ||
|
||
return ( | ||
<div className={cn("row")}> | ||
{labelElement} | ||
<div style={style} className={cn("control", { group: singleLineControlGroup })}> | ||
{children} | ||
</div> | ||
</div> | ||
); | ||
} |
2 changes: 1 addition & 1 deletion
2
...ts/TriggerEditForm/MetricSourceSelect.tsx → ...ditForm/Components/MetricSourceSelect.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.