mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 19:12:41 +00:00
fixed vertical spacing
This commit is contained in:
@@ -232,24 +232,26 @@ const MetadataEditor = createClass({
|
|||||||
onChange={(e)=>this.handleFieldChange('title', e)} />
|
onChange={(e)=>this.handleFieldChange('title', e)} />
|
||||||
</div>
|
</div>
|
||||||
<div className='field-group'>
|
<div className='field-group'>
|
||||||
<div className='field description'>
|
<div className='field-column'>
|
||||||
<label>description</label>
|
<div className='field description'>
|
||||||
<textarea value={this.props.metadata.description} className='value'
|
<label>description</label>
|
||||||
onChange={(e)=>this.handleFieldChange('description', e)} />
|
<textarea value={this.props.metadata.description} className='value'
|
||||||
</div>
|
onChange={(e)=>this.handleFieldChange('description', e)} />
|
||||||
<div className='field thumbnail'>
|
</div>
|
||||||
<label>thumbnail</label>
|
<div className='field thumbnail'>
|
||||||
<input type='text'
|
<label>thumbnail</label>
|
||||||
value={this.props.metadata.thumbnail}
|
<input type='text'
|
||||||
placeholder='my.thumbnail.url'
|
value={this.props.metadata.thumbnail}
|
||||||
className='value'
|
placeholder='my.thumbnail.url'
|
||||||
onChange={(e)=>this.handleFieldChange('thumbnail', e)} />
|
className='value'
|
||||||
<button className='display' onClick={this.toggleThumbnailDisplay}>
|
onChange={(e)=>this.handleFieldChange('thumbnail', e)} />
|
||||||
<i className={`fas fa-caret-${this.state.showThumbnail ? 'right' : 'left'}`} />
|
<button className='display' onClick={this.toggleThumbnailDisplay}>
|
||||||
</button>
|
<i className={`fas fa-caret-${this.state.showThumbnail ? 'right' : 'left'}`} />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{this.renderThumbnail()}
|
||||||
</div>
|
</div>
|
||||||
{this.renderThumbnail()}
|
|
||||||
|
|
||||||
<StringArrayEditor label='tags' valuePatterns={[/^(?:(?:group|meta|system|type):)?[A-Za-z0-9][A-Za-z0-9 \/.\-]{0,40}$/]}
|
<StringArrayEditor label='tags' valuePatterns={[/^(?:(?:group|meta|system|type):)?[A-Za-z0-9][A-Za-z0-9 \/.\-]{0,40}$/]}
|
||||||
placeholder='add tag' unique={true}
|
placeholder='add tag' unique={true}
|
||||||
|
|||||||
@@ -9,19 +9,28 @@
|
|||||||
background-color : #999;
|
background-color : #999;
|
||||||
height : calc(100vh - 54px); // 54px is the height of the navbar + snippet bar. probably a better way to dynamic get this.
|
height : calc(100vh - 54px); // 54px is the height of the navbar + snippet bar. probably a better way to dynamic get this.
|
||||||
|
|
||||||
display: flex;
|
& > div {
|
||||||
flex-wrap: wrap;
|
margin-bottom: 10px;
|
||||||
gap: 10px;
|
}
|
||||||
|
|
||||||
.field-group {
|
.field-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
width: 100%;
|
||||||
flex: 5;
|
flex-wrap: wrap;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.field-column {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex: 5 0 200px;
|
||||||
|
gap: 10px;
|
||||||
|
|
||||||
|
}
|
||||||
.field{
|
.field{
|
||||||
display : flex;
|
display : flex;
|
||||||
width : 100%;
|
width : 100%;
|
||||||
|
min-width : 200px;
|
||||||
&>label{
|
&>label{
|
||||||
display : inline-block;
|
display : inline-block;
|
||||||
vertical-align : top;
|
vertical-align : top;
|
||||||
|
|||||||
Reference in New Issue
Block a user