Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
W
whats-open-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
23
Issues
23
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
whats-open-web
Commits
33fd49b1
Commit
33fd49b1
authored
Mar 13, 2018
by
Andrew Hrdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Map dialog is fullscreen on mobile. Added close button to dialog.
Closes
#17
.
parent
09a3da6e
Pipeline
#2191
passed with stage
in 1 minute and 45 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
src/components/FacilityDialog.js
src/components/FacilityDialog.js
+1
-0
src/components/MapDialog.js
src/components/MapDialog.js
+10
-4
src/styles/components/mapDialog.scss
src/styles/components/mapDialog.scss
+10
-0
src/styles/whatsOpen.scss
src/styles/whatsOpen.scss
+1
-0
No files found.
src/components/FacilityDialog.js
View file @
33fd49b1
...
...
@@ -81,6 +81,7 @@ class FacilityDialog extends React.Component {
open
=
{
isMapOpen
}
facilities
=
{
facilities
}
facility
=
{
facility
}
fullScreen
=
{
true
}
campusRegion
=
{
facility
.
facility_location
.
campus_region
}
onClose
=
{
this
.
toggleMap
}
/
>
...
...
src/components/MapDialog.js
View file @
33fd49b1
...
...
@@ -2,6 +2,8 @@ import React from 'react';
import
PropTypes
from
'
prop-types
'
;
import
Dialog
from
'
material-ui/Dialog
'
;
import
FacilitiesMap
from
'
./FacilitiesMap
'
;
import
IconButton
from
'
material-ui/IconButton
'
;
import
CloseIcon
from
'
material-ui-icons/Close
'
;
class
MapDialog
extends
React
.
Component
{
handleRequestClose
=
()
=>
{
...
...
@@ -9,14 +11,18 @@ class MapDialog extends React.Component {
};
render
()
{
const
{
facility
,
facilities
,
campusRegion
,
open
}
=
this
.
props
;
const
{
facility
,
facilities
,
campusRegion
,
open
,
width
,
height
,
fullScreen
=
false
}
=
this
.
props
;
return
(
<
Dialog
onClose
=
{
this
.
handleRequestClose
}
open
=
{
open
}
>
<
Dialog
onClose
=
{
this
.
handleRequestClose
}
open
=
{
open
}
fullScreen
=
{
fullScreen
}
>
<
div
style
=
{{
height
:
'
500px
'
,
width
:
'
600px
'
height
:
height
||
'
100%
'
,
width
:
width
||
'
100%
'
}}
>
<
IconButton
className
=
{
'
map-dialog-close-btn
'
}
onClick
=
{
this
.
handleRequestClose
}
>
<
CloseIcon
/>
<
/IconButton
>
<
FacilitiesMap
facilities
=
{
facilities
}
facility
=
{
facility
}
...
...
src/styles/components/mapDialog.scss
0 → 100644
View file @
33fd49b1
.map-dialog-close-btn
{
position
:
absolute
!
important
;
z-index
:
100
;
top
:
10px
;
left
:
10px
;
width
:
30px
!
important
;
height
:
30px
!
important
;
background-color
:
white
!
important
;
border-radius
:
5px
!
important
;
}
\ No newline at end of file
src/styles/whatsOpen.scss
View file @
33fd49b1
...
...
@@ -9,6 +9,7 @@
@import
'./components/facilityStatus'
;
@import
'./components/facilityLabels'
;
@import
'./components/favoriteButton'
;
@import
'./components/mapDialog'
;
@import
'./components/sidebar'
;
@import
'./components/textwTitle'
;
@import
'./components/weekHours'
;
...
...
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