Skip to content

Commit

Permalink
Plays responsiveness (reactplay#772)
Browse files Browse the repository at this point in the history
* finding errors

* fixing

* fixed
  • Loading branch information
yung-coder committed Oct 30, 2022
1 parent 73192eb commit c6a28f8
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 38 deletions.
18 changes: 14 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"react-icons": "^4.3.1",
"react-loader-spinner": "~5.1.5",
"react-organizational-chart": "^2.1.1",
"react-p5": "^1.3.30",
"react-p5": "^1.3.33",
"react-qr-code": "^2.0.7",
"react-redux": "^8.0.1",
"react-router-dom": "^6.4.0",
Expand Down Expand Up @@ -68,13 +68,23 @@
"cypress:run": "cypress run"
},
"eslintConfig": {
"extends": ["react-app", "react-app/jest"]
"extends": [
"react-app",
"react-app/jest"
]
},
"reactSnap": {
"puppeteerArgs": ["--no-sandbox", "--disable-setuid-sandbox"]
"puppeteerArgs": [
"--no-sandbox",
"--disable-setuid-sandbox"
]
},
"browserslist": {
"production": [">0.2%", "not dead", "not op_mini all"],
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
Expand Down
8 changes: 4 additions & 4 deletions src/plays/download-fetch-response/DownloadFetchResponse.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ export default function DownloadFetchResponse(props) {
justify="center"
style={{ paddingTop: "10rem" }}
>
<Grid item xs={5}>
<Card className={matches ? 'desk-screen' : 'other-screen'} sx={{ fontSize: 14 }}>
<CardContent>
<Grid item xs={10} >
<Card className={matches ? 'desk-screen' : 'other-screen'} sx={{ fontSize: 14 }} className='main'>
<CardContent className="check">
<Typography sx={{ fontSize: 14 }} gutterBottom>
Save Fetch API Response
</Typography>
<Typography variant="h5" component="div">
<Typography variant="h5" component="div" >
<div className="civ">
{!fetching ? (
<div className="clazz">
Expand Down
57 changes: 28 additions & 29 deletions src/plays/download-fetch-response/response.scss
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
.fetch-download
{
.note-txt
{
font-size: 11px !important;
padding-top: 2rem;
color: darkslategrey;
.fetch-download {
.note-txt {
font-size: 11px !important;
padding-top: 2rem;
color: darkslategrey;
}
.desk-screen {
min-width: 650px;
}
.other-screen {
min-width: -webkit-fill-available;
}
.clazz {
input {
border: none;
overflow: auto;
outline: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
resize: none;
width: 100%;
}
.desk-screen
{
min-width: 650px
}
.other-screen
{
min-width:-webkit-fill-available; ;
}
.clazz {
input {
border: none;
overflow: auto;
outline: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
resize: none;
width: -webkit-fill-available;
;
}
}
}
}
}

.main {
width: 90vw;
}
5 changes: 4 additions & 1 deletion src/plays/multiselect-component/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ $select-component-dropdown-max-height: 450px;

#multi-select-component {
width: $select-component-width;
margin-top: 100px;
margin-top: 100px;
width: 100%;
height: max-content;

> * {
font-size: $select-component-font-size;
Expand Down Expand Up @@ -70,6 +72,7 @@ $select-component-dropdown-max-height: 450px;
border-top-color: white;
max-height: $select-component-dropdown-max-height;
overflow-y: scroll;
width: 100%;

&.closed {
display: none;
Expand Down

0 comments on commit c6a28f8

Please sign in to comment.