Commit 297a6fd3 authored by Mattias J Duffy's avatar Mattias J Duffy
Browse files

changed cardMedia to img in hopes that it caches images better on firefox

parent 8c8f4370
...@@ -68,16 +68,15 @@ class FacilityCard extends React.Component { ...@@ -68,16 +68,15 @@ class FacilityCard extends React.Component {
const buildingName = facility.facility_location.friendly_building ? const buildingName = facility.facility_location.friendly_building ?
facility.facility_location.friendly_building : facility.facility_location.friendly_building :
facility.facility_location.building; facility.facility_location.building;
return ( return (
<Card onClick={this.handleCardClick} className={classNames('fc-root', isSelected && 'fc-selected')} <Card onClick={this.handleCardClick} className={classNames('fc-root', isSelected && 'fc-selected')}
onMouseEnter={this.handleMouseEnter} onMouseLeave={this.handleMouseLeave} raised> onMouseEnter={this.handleMouseEnter} onMouseLeave={this.handleMouseLeave} raised>
<CardMedia className={'fc-media'} <CardMedia className={'fc-media'}
image={'https://gmucampus.files.wordpress.com/2010/09/00sothside2.jpg'} /> image={'https://gmucampus.files.wordpress.com/2010/09/00southside2.jpg'} />
<div className={'fc-logo-container'}> <div className={'fc-logo-container'}>
<CardMedia className={'fc-logo'} <img className={'fc-logo'}
image={facility.logo} /> src={facility.logo} />
</div> </div>
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
width: 90px; width: 90px;
height: 90px; height: 90px;
margin: auto; margin: auto;
background-size: contain !important; object-fit: contain !important;
} }
.fc-title { .fc-title {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment