From bb25d30663bfe543ee9d4a1119238bb8c753799d Mon Sep 17 00:00:00 2001
From: Gazook89 <58999374+Gazook89@users.noreply.github.com>
Date: Thu, 15 Sep 2022 12:29:25 -0500
Subject: [PATCH] flex working, but odd vertical spacing
---
.../editor/metadataEditor/metadataEditor.jsx | 34 +++++++------
.../editor/metadataEditor/metadataEditor.less | 50 +++++++++++++------
2 files changed, 54 insertions(+), 30 deletions(-)
diff --git a/client/homebrew/editor/metadataEditor/metadataEditor.jsx b/client/homebrew/editor/metadataEditor/metadataEditor.jsx
index 29c193323..a793c4f3f 100644
--- a/client/homebrew/editor/metadataEditor/metadataEditor.jsx
+++ b/client/homebrew/editor/metadataEditor/metadataEditor.jsx
@@ -231,23 +231,25 @@ const MetadataEditor = createClass({
value={this.props.metadata.title}
onChange={(e)=>this.handleFieldChange('title', e)} />
-
-
-
-
-
-
this.handleFieldChange('thumbnail', e)} />
-
- {this.renderThumbnail()}
+
+
+
+
+
+
+ this.handleFieldChange('thumbnail', e)} />
+
+
+ {this.renderThumbnail()}
label{
display : inline-block;
vertical-align : top;
@@ -23,7 +34,7 @@
}
&>.value{
flex : 1 1 auto;
- min-width : 200px;
+ width : 50px;
}
&.thumbnail{
height : 1.4em;
@@ -43,22 +54,33 @@
background-color: #777;
}
}
- .thumbnail-preview{
- position : relative;
- width : 80px;
- height : min-content;
- border : 2px solid white;
- margin-left : 5px;
- max-height : 115px;
+ }
+
+ &.description {
+ flex: 1;
+ textarea.value {
+ resize : none;
+ height : auto;
+ font-family : 'Open Sans', sans-serif;
+ font-size : 0.8em;
}
}
}
- .description.field textarea.value{
- resize : none;
- height : 5em;
- font-family : 'Open Sans', sans-serif;
- font-size : 0.8em;
+
+
+ .thumbnail-preview {
+ position: relative;
+ justify-self: center;
+ width: 80px;
+ height: min-content;
+ border: 2px solid white;
+ flex: 1 1;
+ max-height: 115px;
+ aspect-ratio: 1 / 1;
+ object-fit: contain;
+ background-color: cadetblue;
}
+
.systems.field .value{
label{
vertical-align : middle;