fix: redundant scrollbar on codeally Iframe (#43503)
This commit is contained in:
@ -25,6 +25,13 @@ body {
|
|||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.codeally-frame {
|
||||||
|
display: block;
|
||||||
|
height: calc(100vh - var(--header-height, 0px));
|
||||||
|
width: 100%;
|
||||||
|
border: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-cta-big {
|
.btn-cta-big {
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
|
@ -15,7 +15,6 @@ import {
|
|||||||
ChallengeMetaType
|
ChallengeMetaType
|
||||||
} from '../../../redux/prop-types';
|
} from '../../../redux/prop-types';
|
||||||
import { updateChallengeMeta, challengeMounted } from '../redux';
|
import { updateChallengeMeta, challengeMounted } from '../redux';
|
||||||
|
|
||||||
// Redux
|
// Redux
|
||||||
const mapStateToProps = () => ({});
|
const mapStateToProps = () => ({});
|
||||||
const mapDispatchToProps = (dispatch: Dispatch) =>
|
const mapDispatchToProps = (dispatch: Dispatch) =>
|
||||||
@ -61,15 +60,10 @@ class ShowCodeAlly extends Component<ShowCodeAllyProps> {
|
|||||||
<LearnLayout>
|
<LearnLayout>
|
||||||
<Helmet title={`${blockName}: ${title} | freeCodeCamp.org`} />
|
<Helmet title={`${blockName}: ${title} | freeCodeCamp.org`} />
|
||||||
<iframe
|
<iframe
|
||||||
sandbox='allow-modals allow-forms allow-popups allow-scripts allow-same-origin'
|
className='codeally-frame'
|
||||||
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
||||||
|
sandbox='allow-modals allow-forms allow-popups allow-scripts allow-same-origin'
|
||||||
src={`http://codeally.io/embed/?repoUrl=${url}`}
|
src={`http://codeally.io/embed/?repoUrl=${url}`}
|
||||||
style={{
|
|
||||||
width: '100%',
|
|
||||||
height: 'calc(100vh - 38px)',
|
|
||||||
overflow: 'hidden',
|
|
||||||
border: 0
|
|
||||||
}}
|
|
||||||
title='Editor'
|
title='Editor'
|
||||||
/>
|
/>
|
||||||
</LearnLayout>
|
</LearnLayout>
|
||||||
|
Reference in New Issue
Block a user