fix: Move Series Information to Separate Row (#990)
* fix ThumbnailEntry alignment * move series information to separate row
This commit is contained in:
1 parent
73bc4d9094
commit
458d310c78
2 files changed
+17
-24
No files matched your search
@@ -38,7 +38,6 @@ class ThumbnailEntry extends Component {
|
|||||||
let className = classnames('ThumbnailEntry noselect', {
|
let className = classnames('ThumbnailEntry noselect', {
|
||||||
active: this.props.active,
|
active: this.props.active,
|
||||||
});
|
});
|
||||||
const infoOnly = false;
|
|
||||||
|
|
||||||
let contents = null;
|
let contents = null;
|
||||||
if (this.props.imageSrc || this.props.imageId) {
|
if (this.props.imageSrc || this.props.imageId) {
|
||||||
@@ -54,8 +53,10 @@ class ThumbnailEntry extends Component {
|
|||||||
);
|
);
|
||||||
} else if (this.props.altImageText) {
|
} else if (this.props.altImageText) {
|
||||||
contents = (
|
contents = (
|
||||||
<div className={'alt-image-text p-x-1'}>
|
<div className="p-x-1">
|
||||||
<h1>{this.props.altImageText}</h1>
|
<div className="alt-image-text">
|
||||||
|
<h1>{this.props.altImageText}</h1>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -69,23 +70,23 @@ class ThumbnailEntry extends Component {
|
|||||||
>
|
>
|
||||||
{contents}
|
{contents}
|
||||||
<div
|
<div
|
||||||
className={infoOnly ? 'series-details info-only' : 'series-details'}
|
className="series-details"
|
||||||
>
|
>
|
||||||
<div className="series-description">
|
<div className="series-description">
|
||||||
{this.props.seriesDescription}
|
{this.props.seriesDescription}
|
||||||
</div>
|
</div>
|
||||||
<div className="series-information">
|
<div className="series-information">
|
||||||
<div className="item item-series clearfix">
|
<div className="item item-series">
|
||||||
<div className="icon">S:</div>
|
<div className="icon">S:</div>
|
||||||
<div className="value">{this.props.seriesNumber}</div>
|
<div className="value">{this.props.seriesNumber}</div>
|
||||||
</div>
|
</div>
|
||||||
{hasInstanceNumber && (
|
{hasInstanceNumber && (
|
||||||
<div className="item item-series clearfix">
|
<div className="item item-series">
|
||||||
<div className="icon">I:</div>
|
<div className="icon">I:</div>
|
||||||
<div className="value">{this.props.instanceNumber}</div>
|
<div className="value">{this.props.instanceNumber}</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="item item-frames clearfix">
|
<div className="item item-frames">
|
||||||
<div className="icon">
|
<div className="icon">
|
||||||
<div />
|
<div />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -31,8 +31,6 @@
|
|||||||
color: var(--text-primary-color);
|
color: var(--text-primary-color);
|
||||||
|
|
||||||
.series-details
|
.series-details
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
color: var(--text-primary-color);
|
color: var(--text-primary-color);
|
||||||
font-size: 14px
|
font-size: 14px
|
||||||
line-height: 1.3em
|
line-height: 1.3em
|
||||||
@@ -44,9 +42,6 @@
|
|||||||
position: relative
|
position: relative
|
||||||
word-wrap: break-word
|
word-wrap: break-word
|
||||||
|
|
||||||
.series-description
|
|
||||||
flex-grow: 1
|
|
||||||
|
|
||||||
&.info-only
|
&.info-only
|
||||||
.series-description
|
.series-description
|
||||||
display: none
|
display: none
|
||||||
@@ -67,36 +62,33 @@
|
|||||||
float: none
|
float: none
|
||||||
line-height: 25px
|
line-height: 25px
|
||||||
|
|
||||||
.value
|
|
||||||
margin-left: 0
|
|
||||||
width: auto
|
|
||||||
|
|
||||||
.series-information
|
.series-information
|
||||||
padding-right: 4px
|
display: flex
|
||||||
max-width: 50px
|
flex-direction: row
|
||||||
|
align-items: center
|
||||||
|
|
||||||
|
.item
|
||||||
|
flex: 1
|
||||||
|
text-align: center
|
||||||
|
|
||||||
.item-frames .icon
|
.item-frames .icon
|
||||||
height: 18px
|
height: 18px
|
||||||
|
|
||||||
.value
|
.value
|
||||||
color: var(--text-secondary-color);
|
color: var(--text-secondary-color);
|
||||||
display: inline-block
|
display: inline
|
||||||
float: right
|
|
||||||
font-size: 12px
|
font-size: 12px
|
||||||
margin-left: 4px
|
margin-left: 4px
|
||||||
overflow: hidden
|
|
||||||
text-overflow: ellipsis
|
text-overflow: ellipsis
|
||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
width: calc(100% - 15px)
|
|
||||||
|
|
||||||
.icon
|
.icon
|
||||||
color: var(--active-color);
|
color: var(--active-color);
|
||||||
display: inline-block
|
display: inline
|
||||||
float: left
|
|
||||||
font-size: 10px
|
font-size: 10px
|
||||||
font-weight: 900
|
font-weight: 900
|
||||||
text-align: right
|
text-align: right
|
||||||
width: 11px
|
|
||||||
|
|
||||||
div
|
div
|
||||||
background-color: var(--series-count-background-color);
|
background-color: var(--series-count-background-color);
|
||||||
|
|||||||
Reference in new issue
Block a user