-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Layout issues #94
Comments
Yeah, sorry, you pushed that issue when I was already working on v2 but wasn't yet sure how much I would keep. |
Thanks for getting that in. Navigation works now, and the logo fits the page properly, which fixed some other issues, but there's something else going on that I don't think v1 did (I could be wrong). http://i.imgur.com/1lXG6Sr.jpg I might be able to have a look at this sometime next week. |
P.s. the remaining issue only really affects the settings pages. Searches, stats, etc all seem fine after the fixes you put in last night. |
On the downside it displays vertical and horizontal scrollbars on my computer. |
Well drats. Like I said I can look at the HTML/CSS sometime next week. |
Thanks :-) |
Ok, so I've looked a little bit (just on the surface) and some weird things are going on. I want to say they are coming from bootstrap but I honestly don't know. For starters, the login screen has a horizontal scroll bar even on my desktop (with a huge resolution) and I've found this is because of a Then after logging in there's various alignment issues on mobile where things just don't line up.
This (and getting rid of those Once those two things are fixed I'll point out more. |
Hey, any help is appreciated. You can just tell me what to change. Or do a
PR for the change in the CSS and I transfer it to less.
Am 02.02.2018 21:33 schrieb "Eric Nemchik" <[email protected]>:
Ok, so I've looked a little bit (just on the surface) and some weird things
are going on. I want to say they are coming from bootstrap but I honestly
don't know.
For starters, the login screen has a horizontal scroll bar even on my
desktop (with a huge resolution) and I've found this is because of a -15px
margin that I was able to locate in multiple files, but from what I can
tell you're using less which i'm not familiar with so I don't know if I'd
be making the change in the wrong place.
Then after logging in there's various alignment issues on mobile where
things just don't line up.
Here's one example: https://github.com/theotherp/
nzbhydra2/blob/master/core/ui-src/html/states/config.html#L155-L167 If you
change that block to look like this
<div class="col-md-6 config-content">
<label for="{{::id}}" class="col-md-7 control-label config-label">
{{ to.label }} {{ to.required ? "*" : ""}}
</label>
<formly-transclude></formly-transclude>
<div class="my-messages" ng-messages="fc.$error"
ng-if="options.formControl.$touched || form.$submitted"
ng-messages-multiple>
<div class="some-message has-error control-label"
ng-message="{{::name}}" ng-repeat="(name, message) in
::options.validation.messages">
{{ message(fc.$viewValue, fc.$modelValue, this)}}
</div>
</div>
</div>
This (and getting rid of those -15px margins all over the place) would
immensely fix the view on mobile and not affect desktop at all. I'll keep
looking for more things, but I don't know how much help I might be with
direct edits or a PR to your repo since I'm just not familiar with less and
the way you have things organized (I'll try though).
Once those two things are fixed I'll point out more.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANtAeeKayFnQPscbALqEw9Gs4F7A7tX4ks5tQ3ESgaJpZM4RvGtl>
.
|
That shows what files have the |
Ok, I'm working on a PR, but I would really like to discuss what you have going on with CSS. I see you have normalize.css in a few places, and it's a significantly older than the current version. I also see you are combining CSS into alllibs.css and stripping out new lines in all your CSS. So... why? I think you could alleviate a number of headaches by separating out the CSS (and probably JS, I'm guessing they are being combined as well) and formatting them properly instead of stripping out newlines. There's numerous benefits to this as well that I'm willing to discuss, but I'd like to know the reasons for why you've done things this way so far? You might have some golden insight that I don't and at the end of the day it might be better this way. edit: I see the use of normalize.css is coming from bootstrap 3.x. I don't think this is an issue, but I would still definitely like to know why you're stripping newlines and combining all libraries. |
I think unifying all CSS files in one is common practice. It reduces the amount of file transfers (not really an issue here, to be honest) and makes the handling easier. I haven't really spent much thought on the matter, most tutorials and archetype generators do it that way and I don't see a reason to change it. I use wiredep do gather all the needed scripts and CSS files, concat them and them uglify them to reduce the file size. I never look at the CSS files themselves. Everything in More or less the same goes for JS. None of the files in the static folder are meant to be human readable. I only actively work on the files in https://github.com/theotherp/nzbhydra2/tree/master/core/ui-src |
so which file is actually used for the login? I see both I've done a little more digging and found the I imagine there are a number of other places where I may be able to help with the implementation of bootstrap in order to get things looking/working better. |
Ignore whatever you see in the The downside is that you won't be able to see the effects of whatever you do. There might be a way to get that working but it would require some code changes and for you to get gulp running, without it will be really hard for you. |
I've contributed to other repos that used things like grunt https://github.com/berrberr/streamkeys there's one such example. They included the files needed in the repo so that others could run a few quick commands and be able to test and contribute. Not sure if gulp works the same way, but I don't mind doing some upkeep if you can provide instructions. Once I dig in I'll be able to help with a lot of things, from minor fixes to major overhauls if needed (and time allows). I can certainly resolve the problems that lead me to open this issue, and then just let me know if there's anything else I can help with. |
To compile the source files you just have to:
The LESS/HTML/JS files in With v1.3.3 which I will release later Hydra will look in the static folder first when any UI resources are queried. That way you can just reload Hydra in your browser and see the effects of your changes. Note: The next time you just have to execute step 7 in the |
Hm, sorry, 1.3.3 will have to wait, suddenly my layout is fucked up and I don't have any time left to debug it. |
If you want to try to get started follow the instructions here: https://github.com/theotherp/nzbhydra2/wiki/Development-of-frontend-resources I'll release 1.3.3 tomorrow, until then you can experiment a bit and see if you get gulp running. |
I'm not sure that the change I submitted caused whatever issue you were having, but when I tested (editing the code in Chrome's developer console) that specific change seemed fine. |
Ok, now that i'm playing with 1.3.3 that change I just mentioned messes the whole config page up and I have no idea what's going on that's causing it. |
Yeah, you're right, I remember I noticed that too but then forgot about it |
It only took me a few minutes to find that first fix, but I played with it this morning for a good while and couldn't find a fix. My hunch is there's class attributes being nested in the wrong order, but I haven't been able to narrow it down. |
Hydra to be usable in a mobile browser.
The page loads, but there's no navigation and there's some serious issues with placement.
Yes. It was fixed in v1 see Fix mobile issues nzbhydra#629
Yes. Browse to Hydra on a mobile phone.
The text was updated successfully, but these errors were encountered: