Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-web
Commits
297a6fd3
Commit
297a6fd3
authored
Jan 27, 2018
by
Mattias J Duffy
Browse files
changed cardMedia to img in hopes that it caches images better on firefox
parent
8c8f4370
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/containers/FacilityCard.js
View file @
297a6fd3
...
...
@@ -68,16 +68,15 @@ class FacilityCard extends React.Component {
const
buildingName
=
facility
.
facility_location
.
friendly_building
?
facility
.
facility_location
.
friendly_building
:
facility
.
facility_location
.
building
;
return
(
<
Card
onClick
=
{
this
.
handleCardClick
}
className
=
{
classNames
(
'
fc-root
'
,
isSelected
&&
'
fc-selected
'
)}
onMouseEnter
=
{
this
.
handleMouseEnter
}
onMouseLeave
=
{
this
.
handleMouseLeave
}
raised
>
<
CardMedia
className
=
{
'
fc-media
'
}
image
=
{
'
https://gmucampus.files.wordpress.com/2010/09/00sothside2.jpg
'
}
/
>
image
=
{
'
https://gmucampus.files.wordpress.com/2010/09/00so
u
thside2.jpg
'
}
/
>
<
div
className
=
{
'
fc-logo-container
'
}
>
<
CardMedia
className
=
{
'
fc-logo
'
}
image
=
{
facility
.
logo
}
/
>
<
img
className
=
{
'
fc-logo
'
}
src
=
{
facility
.
logo
}
/
>
<
/div
>
...
...
src/styles/containers/facilityCard.scss
View file @
297a6fd3
...
...
@@ -42,7 +42,7 @@
width
:
90px
;
height
:
90px
;
margin
:
auto
;
background-size
:
contain
!
important
;
object-fit
:
contain
!
important
;
}
.fc-title
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment