-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(demo-fix)Added width in style.css file #102
Conversation
Thanks for opening this pull request! |
I have manually added the width property in the css file in the examples folder. After adding a defined width to the |
@@ -1,39 +1,44 @@ | |||
.navbar-fixed-top .nav li { | |||
padding-top:3px; | |||
font-family:junction,sans-serif; | |||
padding-top: 3px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have you manually added these spaces? If not you can use a linter tool Eg: css lint although there are some production level linting tools available.
Please add relevant screenshot too. |
@@ -212,7 +212,7 @@ | |||
|
|||
<div class="col-md-10"> | |||
|
|||
<div id="graph" style="width:100%;height:200px;margin:10px 0;"></div> | |||
<div id="graph"></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here the width was set up to 100% because of which the initial width was getting set to 0, so can you please upload the screenshot of the work-flow before and after?. Also, what are the default dimensions div with id #graph is taking up after you removed height and width?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Adding them.
Also, I have added these styles to the style.css file. As of now, I have set the width to 1024 px. I am thinking of using media queries to make the graph responsive. What do you say? Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#graph {
width: 1024px;
height: 200px;
margin: 10px 0px;
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh you know as long as you're having this discussion here we might as well conclude this within this PR as well, then. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the solution was to set width in the stylesheet instead of with inline css?
Though one error is still coming related to CORS.
|
Yes, you can ignore the cors error for now, it's trying to fetch recent
calibrations from the SWB server, but we can figure out how to deal with
that later.
Great to see you posting a PR! Thanks!
…On Sun, Jul 14, 2019, 6:12 AM Siddhant N Trivedi ***@***.***> wrote:
[image: Screenshot 2019-07-14 at 3 41 36 PM]
<https://user-images.githubusercontent.com/31186013/61182228-ee2b0480-a64d-11e9-82d0-1fc5f7de45df.png>
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#102?email_source=notifications&email_token=AAAF6J3UHGE7BLXR5ZYXC4TP7L3X3A5CNFSM4IC3EO32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ4CILA#issuecomment-511190060>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6JYHCGBRIFSFYSPCPDLP7L3X3ANCNFSM4IC3EO3Q>
.
|
Is it working overall though if you allow video? While testing, you can put
some tape over your camera if you don't want to take a selfie.
…On Sun, Jul 14, 2019, 6:45 AM Jeffrey Warren ***@***.***> wrote:
Yes, you can ignore the cors error for now, it's trying to fetch recent
calibrations from the SWB server, but we can figure out how to deal with
that later.
Great to see you posting a PR! Thanks!
On Sun, Jul 14, 2019, 6:12 AM Siddhant N Trivedi ***@***.***>
wrote:
> [image: Screenshot 2019-07-14 at 3 41 36 PM]
> <https://user-images.githubusercontent.com/31186013/61182228-ee2b0480-a64d-11e9-82d0-1fc5f7de45df.png>
>
> —
> You are receiving this because your review was requested.
> Reply to this email directly, view it on GitHub
> <#102?email_source=notifications&email_token=AAAF6J3UHGE7BLXR5ZYXC4TP7L3X3A5CNFSM4IC3EO32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ4CILA#issuecomment-511190060>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAAF6JYHCGBRIFSFYSPCPDLP7L3X3ANCNFSM4IC3EO3Q>
> .
>
|
@jywarren Yes, it's working while recording video too. I am just posting the screen recording for it. Also, should I implement media queries in it to make the |
|
Let's merge this first if it's ready, and adjust the graph in a new PR?
That way we use one PR for each task. Thanks! This is great.
…On Sun, Jul 14, 2019, 8:23 AM Siddhant N Trivedi ***@***.***> wrote:
[image: demo]
<https://user-images.githubusercontent.com/31186013/61183409-98ab2380-a65e-11e9-8d9b-18fac3bad5ba.gif>
@jywarren <https://github.com/jywarren> PTAL.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#102?email_source=notifications&email_token=AAAF6J4SGMGPDSGPVC6SVFLP7MLDZA5CNFSM4IC3EO32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ4EIFA#issuecomment-511198228>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J5UJNCR7QQEGOAWYXTP7MLDZANCNFSM4IC3EO3Q>
.
|
Would you like to open a new PR which adds a button (labelled "Connect to Raspberry Pi") to the start screen, using the following code? https://github.com/publiclab/infragram/blob/main/pi/index.html#L185-L191 We'll have to adjust this line to correctly send the video data from a raspberry pi camera to the spectral Workbench code:
|
Actually I'm sorry to ask for that in this PR, it's really a separate issue. I moved my comments and suggestions on that topic back over to #75 (comment) However this is something I think you could open a new PR for! I'm going to merge this one since you solved the core issue. Great work, and you can open your next one building off this work! |
Congrats on merging your first pull request! 🙌🎉⚡️ |
🎉🎉🎉👍🏽😁☑️😍💥🦸🏽♂️ |
@cryptoclidus does this work for you? |
Make sure these boxes are checked before your pull request is ready to be reviewed and merged. Thanks!
Please be sure you've reviewed our contribution guidelines at https://publiclab.org/wiki/contributing-to-public-lab-software
Please alert developers on [email protected] when your request is ready or if you need assistance.
Thanks!