Correctly position more links on mobile (#56)

The more links are absolutely positioned. It works fine on desktop when
there is two columns. On mobile, the absolute sends the more links on
top of each other on top of the column. Adding a simple "relative" class
on each cards that contains a more link ensures that they stay when
they belong.
pull/62/head
pmhoudry 7 years ago committed by GitHub
parent f52aac6a31
commit 22a2eae940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -94,7 +94,7 @@ export default class Countries extends React.Component {
render() {
return (
<div className="stats-item bg-white shadow-xl rounded p-4" style={{height: '436px'}}>
<div className="stats-item relative bg-white shadow-xl rounded p-4" style={{height: '436px'}}>
{ this.state.loading && <div className="loading my-32 mx-auto"><div></div></div> }
<FadeIn show={!this.state.loading}>
{ this.renderBody() }

@ -74,7 +74,7 @@ export default class Pages extends React.Component {
render() {
return (
<div className="stats-item bg-white shadow-xl rounded p-4" style={{height: '436px'}}>
<div className="stats-item relative bg-white shadow-xl rounded p-4" style={{height: '436px'}}>
{ this.state.loading && <div className="loading mt-44 mx-auto"><div></div></div> }
<FadeIn show={!this.state.loading}>
{ this.renderContent() }

@ -80,7 +80,7 @@ export default class Referrers extends React.Component {
render() {
return (
<div className="stats-item bg-white shadow-xl rounded p-4" style={{height: '436px'}}>
<div className="stats-item relative bg-white shadow-xl rounded p-4" style={{height: '436px'}}>
{ this.state.loading && <div className="loading mt-44 mx-auto"><div></div></div> }
<FadeIn show={!this.state.loading}>
{ this.renderContent() }

Loading…
Cancel
Save