🔲 Used css-grid for laying out cover grid

This commit is contained in:
2021-06-01 08:26:24 -07:00
parent 68194898d4
commit 773491429a
4 changed files with 451 additions and 184 deletions

View File

@@ -46,7 +46,7 @@ class Card extends React.Component<IProps, IState> {
};
public render() {
return <div>{this.drawCoverCard(this.props.comicBookCoversMetadata)}</div>;
return <>{this.drawCoverCard(this.props.comicBookCoversMetadata)}</>;
}
}

View File

@@ -1,5 +1,5 @@
import * as React from "react";
import _ from "lodash";
import { isUndefined } from "lodash";
import { connect } from "react-redux";
import { fetchComicBookMetadata } from "../actions/fileops.actions";
import { IFolderData } from "../shared/interfaces/comicinfo.interfaces";
@@ -48,7 +48,7 @@ class Import extends React.Component<IProps, IState> {
public render() {
return (
<div>
<div className="container">
<section className="section is-small">
<h1 className="title">Import</h1>
@@ -89,10 +89,10 @@ class Import extends React.Component<IProps, IState> {
</button>
</p>
{!_.isUndefined(this.state.folderWalkResults) ? (
<>
{!isUndefined(this.state.folderWalkResults) ? (
<div className="card-container">
<Card comicBookCoversMetadata={this.props.garam} />
</>
</div>
) : null}
</section>
</div>