Move email list text to the left, fill the viewport, add border.
Much prettier.
This commit is contained in:
parent
0d2e43ae83
commit
e68a21dcc4
|
@ -19,7 +19,7 @@ type TopProps = {
|
||||||
|
|
||||||
const AppLayout: React.FC<TopProps> = (props) => {
|
const AppLayout: React.FC<TopProps> = (props) => {
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container fluid>
|
||||||
<Row>
|
<Row>
|
||||||
<Col>
|
<Col>
|
||||||
<AccountList account={props.account} accounts={props.accounts} />
|
<AccountList account={props.account} accounts={props.accounts} />
|
||||||
|
|
|
@ -34,7 +34,7 @@ class EmailList extends React.Component<EmailListProps, EmailListState> {
|
||||||
return <Stack />;
|
return <Stack />;
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<Stack>
|
<Stack className="text-start">
|
||||||
{this.props.mailbox.emailIds.slice(0, 5).map((e) => (
|
{this.props.mailbox.emailIds.slice(0, 5).map((e) => (
|
||||||
<EmailSummary
|
<EmailSummary
|
||||||
account={this.props.account}
|
account={this.props.account}
|
||||||
|
|
|
@ -29,7 +29,7 @@ class EmailSummary extends React.Component<
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div className="p-2" key={this.props.emailId}>
|
<div className="p-2 border" key={this.props.emailId}>
|
||||||
{this.props.email != null
|
{this.props.email != null
|
||||||
? this.props.email.subject
|
? this.props.email.subject
|
||||||
: this.props.emailId}
|
: this.props.emailId}
|
||||||
|
|
Loading…
Reference in New Issue