Publish: pubs/subs enforce alignment w/ title wrap

If your screen wasn't wide enough, the flex rules would destroy the gap
between columns, which destroyed the look of a table altogether.
By removing the 'one-line' class, and moving the margin-left from
the span element to the parent paragraph (for rows that aren't
the header rows), titles wrap onto another line, which enables
a responsive table and firm table margins.
This commit is contained in:
Matilde Park 2019-08-22 13:09:10 -04:00
parent 768c07a3f6
commit 62a81dec84
4 changed files with 9 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -60,8 +60,8 @@ export class Pubs extends Component {
<div className={cls} key={i}>
<div className="fl body-regular-400 mw-336 w-336 pr3">
<Link to={data.url}>
<p className="one-line mw-336">
<span className="ml3">{data.title}</span>
<p className="ml3 mw-336">
<span>{data.title}</span>
</p>
</Link>
</div>
@ -82,7 +82,7 @@ export class Pubs extends Component {
<div>
<HM invites={invites} unread={unread}/>
<div className="absolute w-100" style={{top:124}}>
<div className="flex-col">
<div className="flex-column">
<div className="w-100">
<h2 className="gray-50"
style={{marginLeft: 16, marginTop:32, marginBottom: 16}}>

View File

@ -110,8 +110,8 @@ export class Subs extends Component {
<div className={cls} key={i}>
<div className="fl mw-336" style={{flexBasis: 336}}>
<Link to={data.url}>
<p className="body-regular-400 one-line pr3">
<span className="ml3">{data.title}</span>
<p className="body-regular-400 pr3 ml3">
<span>{data.title}</span>
</p>
</Link>
</div>
@ -133,7 +133,7 @@ export class Subs extends Component {
<div className={cls} key={i}>
<div className="fl body-regular-400" style={{flexBasis: 336}}>
<Link to={data.url}>
<div className="mw-336 one-line pr3">
<div className="mw-336 pr3">
<span className="body-large green-medium"></span>
<span className="body-regular-400">Invite to </span>
<span className="body-regular">
@ -170,7 +170,7 @@ export class Subs extends Component {
<div>
<HM invites={invites} unread={unread}/>
<div className="absolute w-100" style={{top:124}}>
<div className="flex-col">
<div className="flex-column">
<div className="w-100">
<h2 className="gray-50"
style={{marginLeft: 16, marginTop: 32, marginBottom: 16}}>