Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Foundation
IT
Websites
membership.eclipse.org
Commits
7cba148c
Commit
7cba148c
authored
Apr 05, 2022
by
Zhou Fang
Committed by
Martin Lowe
Apr 05, 2022
Browse files
#475
Fixed not work properly on IE
parent
fb88dc94
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/main/www/src/App.css
View file @
7cba148c
...
...
@@ -226,8 +226,10 @@ html {
.portal-login-page
.portal-login-image
{
position
:
fixed
;
z-index
:
-10
;
width
:
110%
;
height
:
110%
;
left
:
-30px
;
top
:
-30px
;
right
:
-30px
;
bottom
:
-30px
;
background-image
:
url('assets/images/placeholderImg.jpg')
;
background-position
:
center
;
background-size
:
cover
;
...
...
src/main/www/src/Utils/portalFunctionHelpers.tsx
View file @
7cba148c
...
...
@@ -85,3 +85,5 @@ export const showErrMsg = (
break
;
}
};
export
const
isIE
=
()
=>
navigator
.
userAgent
.
indexOf
(
'
MSIE
'
)
>
-
1
||
navigator
.
userAgent
.
indexOf
(
'
Trident
'
)
>
-
1
;
src/main/www/src/components/Portal/Dashboard/DashboardCommittersAndContributors/DashboardCommittersAndContributors.tsx
View file @
7cba148c
...
...
@@ -28,7 +28,7 @@ import SectionCtn from '../../../UIComponents/CustomContainer/SectionCtn';
import
{
useContext
,
useEffect
,
useState
}
from
'
react
'
;
import
{
fetchWrapper
}
from
'
../../../../Utils/formFunctionHelpers
'
;
import
{
useHistory
}
from
'
react-router
'
;
import
{
checkPermission
,
pickRandomItems
,
renderItemList
}
from
'
../../../../Utils/portalFunctionHelpers
'
;
import
{
checkPermission
,
isIE
,
pickRandomItems
,
renderItemList
}
from
'
../../../../Utils/portalFunctionHelpers
'
;
import
PortalContext
from
'
../../../../Context/PortalContext
'
;
import
HelpIcon
from
'
@material-ui/icons/Help
'
;
import
DashboardCommittersAndContributorsChart
from
'
./DashboardCommittersAndContributorsChart
'
;
...
...
@@ -144,8 +144,17 @@ export default function DashboardCommittersAndContributors() {
const
[
isFetchingContributors
,
setIsFetchingContributors
]
=
useState
(
true
);
const
[
isFetchingCBI
,
setIsFetchingCBI
]
=
useState
(
true
);
const
[
anchorEle
,
setAnchorEle
]
=
useState
<
HTMLElement
|
null
>
(
null
);
const
{
orgId
,
setContactFilterRole
,
committers
,
setCommitters
,
contributors
,
setContributors
,
cbiData
,
setCBIData
,
currentUserPortal
}
=
useContext
(
PortalContext
);
const
{
orgId
,
setContactFilterRole
,
committers
,
setCommitters
,
contributors
,
setContributors
,
cbiData
,
setCBIData
,
currentUserPortal
,
}
=
useContext
(
PortalContext
);
const
open
=
Boolean
(
anchorEle
);
useEffect
(()
=>
{
...
...
@@ -368,7 +377,7 @@ export default function DashboardCommittersAndContributors() {
</
Grid
>
</
Grid
>
<
Grid
item
xs
lg
=
{
6
}
>
<
DashboardCommittersAndContributorsChart
/>
{
!
isIE
()
&&
<
DashboardCommittersAndContributorsChart
/>
}
</
Grid
>
</
Grid
>
</
SectionCtn
>
...
...
src/main/www/src/components/Portal/Dashboard/DashboardOverview.tsx
View file @
7cba148c
...
...
@@ -46,7 +46,7 @@ const useStyles = makeStyles((theme: Theme) =>
},
overviewIcon
:
{
height
:
'
100%
'
,
height
:
90
,
width
:
85
,
padding
:
theme
.
spacing
(
2
),
marginRight
:
theme
.
spacing
(
1
),
...
...
src/main/www/src/less/App.less
View file @
7cba148c
...
...
@@ -324,8 +324,10 @@ html {
.portal-login-image {
position: fixed;
z-index: -10;
width: 110%;
height: 110%;
left: -30px;
top: -30px;
right: -30px;
bottom: -30px;
background-image: url('assets/images/placeholderImg.jpg');
background-position: center;
background-size: cover;
...
...
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