mirror of
https://github.com/woodchen-ink/CoverView.git
synced 2025-07-18 14:01:56 +08:00
Merge pull request #10 from Rajakumardev/feature/limit_border_size__issue#8
Limit Border Size 200 (MAX) and content overflow visiblity hidden
This commit is contained in:
commit
2bde6ddc1c
@ -41,7 +41,12 @@ class ConfigCover extends React.Component {
|
||||
getRandomTheme = (theme, Pattern) => {
|
||||
this.setState({ bgColor: theme.bgColor, borderColor: theme.bdColor, pattern: Pattern });
|
||||
}
|
||||
|
||||
//this function will set the max border value to 50 if user types a value greater than 50
|
||||
maxBorderValidationCheck = (e) => {
|
||||
if(e.target.value > 50) {
|
||||
e.target.value = 50;
|
||||
}
|
||||
}
|
||||
render() {
|
||||
return (
|
||||
<div className="main-container">
|
||||
@ -118,7 +123,7 @@ class ConfigCover extends React.Component {
|
||||
<div className="d-flex flex-row">
|
||||
<div className="input-sm">
|
||||
<label>Size</label>
|
||||
<input type="number" className="form-control " value={this.state.borderSize} onChange={(e) => this.setState({ borderSize: e.target.value })} />
|
||||
<input type="number" max="50" onInput = {this.maxBorderValidationCheck} className="form-control " value={this.state.borderSize} onChange={(e) => this.setState({ borderSize: e.target.value })} />
|
||||
</div>
|
||||
|
||||
<div className="input-sm">
|
||||
|
@ -8,7 +8,7 @@
|
||||
width:800px;
|
||||
padding:90px;
|
||||
border-radius:2px;
|
||||
|
||||
overflow-y: hidden;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user