Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 27 additions & 5 deletions src/components/DragDropCodeViewer/DragDropCodeViewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,30 @@ const DivFlexStyled = styled.div`
button{
margin-top: -7px;
}
> :nth-child(1) {
flex: 0.05 0 0;
}
> :nth-child(2) {
flex: 0.7 0 0;
margin-top: 2px;
}
> :nth-child(3) {
flex: 0.2 0 0;
max-width: 156px;
}
@media screen and (max-width: 1240px) {
> :nth-child(1) {
flex: 0.075 0 0;
}
> :nth-child(2) {
flex: 0.625 0 0;
}
}
@media screen and (max-width: 1200px) {
> :nth-child(2) {
margin-top: -7px;
}
}
`
const DragDropSVGStyled = styled(DragDropSVG)`
width: 20px;
Expand Down Expand Up @@ -123,18 +147,16 @@ class DragDropCodeViewer extends Component {
{
this.state.value && this.state.value !== ""
? <DivFlexStyled>
<div className="text-center">
<DragDropSVGStyled />&nbsp;&nbsp;
<label>Drag & Drop files here or click browse to choose a file.</label>
</div>
<DragDropSVGStyled />
<label>Drag &amp; Drop files here or click browse to choose a file.</label>
<ButtonPrimary onClick={(e) => e.preventDefault()} >BROWSE</ButtonPrimary>
</DivFlexStyled>
: <div>
<ImageDiv className="text-center">
<DragDropSVG />
</ImageDiv>
<br />
<p id="ddLabel" className="lead text-center">Drag & Drop files here or<br/> click browse to choose a file.</p>
<p id="ddLabel" className="lead text-center">Drag &amp; Drop files here or<br/> click browse to choose a file.</p>
<br />
<p className="lead text-center browseButton">
<ButtonPrimary onClick={(e) => e.preventDefault()} >BROWSE</ButtonPrimary>
Expand Down