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
09b0ddf3
Commit
09b0ddf3
authored
Nov 20, 2017
by
Andrew Hrdy
Browse files
Work on mobile card design. WIP.
parent
cdd37e36
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/containers/FacilityCard.js
View file @
09b0ddf3
...
...
@@ -170,7 +170,7 @@ class FacilityCard extends React.Component {
<
/Grid
>
<
/CardContent
>
<
CardActions
>
<
CardActions
className
=
{
'
fc-card-actions
'
}
>
<
Grid
container
justify
=
{
'
space-around
'
}
>
<
Grid
item
className
=
{
'
fc-extra-info-wrapper
'
}
>
<
FacilityStatus
facility
=
{
facility
}
/
>
...
...
@@ -184,11 +184,13 @@ class FacilityCard extends React.Component {
{
facility
.
facility_location
.
building
}
<
/Typography
>
<
/Grid
>
<
Grid
item
className
=
{
classnames
(
'
fc-extra-info-wrapper
'
,
'
fc-toggle-map-btn-container
'
)}
>
<
Button
className
=
{
'
fc-toggle-map-btn
'
}
onClick
=
{
this
.
toggleMap
}
>
Open
Map
<
/Button
>
<
/Grid
>
<
/Grid
>
<
/CardActions
>
<
Button
className
=
{
'
fc-toggle-map-btn
'
}
onClick
=
{
this
.
toggleMap
}
>
Open
Map
<
/Button
>
<
Dialog
open
=
{
this
.
state
.
isMapOpen
}
onRequestClose
=
{
this
.
toggleMap
}
classes
=
{{
paper
:
'
fc-map-dialog
'
}}
>
<
FacilitiesMap
facilities
=
{
facilities
}
facility
=
{
facility
}
isMapOpen
=
{
true
}
/
>
<
/Dialog
>
...
...
src/styles/components/facilityStatus.scss
View file @
09b0ddf3
...
...
@@ -2,8 +2,8 @@
.facility-status-text
{
align-items
:
center
;
border
:
2
px
solid
;
border-radius
:
10
px
;
border
:
1
.5
px
solid
;
border-radius
:
7
px
;
padding
:
5px
;
font-weight
:
bold
!
important
;
...
...
src/styles/containers/facilityCard.scss
View file @
09b0ddf3
...
...
@@ -60,7 +60,7 @@
overflow
:
hidden
;
}
.fc-toggle-map-btn
{
.fc-toggle-map-btn
-container
{
display
:
none
!
important
;
}
...
...
@@ -130,10 +130,25 @@
overflow
:
inherit
;
}
.fc-toggle-map-btn
{
.fc-toggle-map-btn
-container
{
display
:
block
!
important
;
}
.fc-toggle-map-btn
{
width
:
100%
!
important
;
}
.fc-extra-info-wrapper
{
max-width
:
100%
;
width
:
100%
;
justify-content
:
center
;
padding
:
4px
!
important
;
}
.fc-card-actions
{
height
:
inherit
!
important
;
padding-top
:
8px
!
important
;
}
}
}
...
...
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