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
Issue #40 -- Overhaul overview (search results) #55
Conversation
I just tried it out, this design looks more informative than the current squares. A bunch of small things I would change still (some were already discussed in #40):
And possibly some other small things I don't notice now. |
Thanks for the review. I'll change right now. |
Updated PR:
Please review and tell me what else should be changed. Thanks for your time. |
Nice. Sorry to keep commenting, but I just played around with it more, finding that the use of relative sizes everywhere has its problems. E.g. a small window size just looks very wrong: The layout seems to be designed to be nice on a normal screen size, but that is not the right way to design things. I see you also use |
I am so sorry I forgot the min-height of the component(rookie mistake). I will try and be more careful next time. Obviously that doesn't solve the responsive problem. I have changed the PR. I looked into flex and it seems it solves some of our responsive problem. I will change the code again and make the PR. Thanks a lot for pointing out the mistakes. Any opportunity to learn is a good one. :D |
Just a suggestion but why don't we add a placeholder icon when we cannot get the fa |
@@ -2,7 +2,7 @@ | |||
list-style: none; | |||
margin: 40px auto; | |||
padding: 0; | |||
width: 242px; | |||
width: 60%; |
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.
unless you have a container above in pixel you need min-width too
@@ -1,11 +1,11 @@ | |||
.root { | |||
position: relative; | |||
display: block; | |||
width: 240px; | |||
height: 120px; | |||
width: 100%; |
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.
any particular reason for this? width is auto by default, which means 100% already for most scenarios.
width: 240px; | ||
height: 120px; | ||
width: 100%; | ||
height: 10%; |
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.
is this 10% of which element? if you don't know probably you want to use wh instead.
|
||
.title { | ||
.logo { | ||
height: 100%; |
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.
as above, are those percentages of which element?
color: #333; | ||
} | ||
.title{ | ||
height: 100%; |
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.
as above, are those percentages of which element?
white-space: nowrap; | ||
margin:0; | ||
padding:0; | ||
height:33.33%; |
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.
as above, are those percentages of which element?
.screenshot{ | ||
float:right; | ||
width:15%; | ||
height:100%; |
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.
as above, are those percentages of which element?
I see a large use of percentages for sizing. Those are cards and they don't really make sense in percentage sizing for height. |
Thank you @obsidianart for the review. Yeah as pointed by @Treora I was going to switch over from percentages and move to more definite sizing scheme. Currently I am in the process of converting all the floats to flex. The PR shall be updated soon. Sorry for the css practises. |
Added the initial implementation of the above designed front end with flex box css. I have tried to conform to the styles mentioned in the previous PR that I made. |
width: auto; | ||
height: auto; | ||
height: 100%; | ||
width: 100%; |
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.
do you need this?
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.
It was observed when the page width was decreased the div with the screenshot was shrinking more when no screenshot was present and less when there was a picture in the div(screenshot was present).
I researched a bit more and found that when the width of the container is decreased in flex, it fits according to the content given in the div. Therefore the height and width are set to 100% for when there is no screenshot the div occupies the same space as that of when there is a screenshot.
I still see various size in percentage, is there a reason for it? |
I have tried my best not to use percentages in sizes. I think now whatever percentage sizing being used is necessary(according to me). |
@Treora @obsidianart It recently came to my notice that this PR was never merged(Sorry). I have made the PR merge ready again. We can either close it and go with Oliver's approach or I can change the PR again. Thanks. |
@reficul31 the main changes I (wanted to make) were regarding the font-size of the different lines, the spaces between elements and some other cleaning up of CSS. |
I think Oliver's approach is just this PR plus some changes to the design, but he did not continue from this branch so @reficul31's commits disappeared from the history. I'd take this branch as it was, rebase onto master (rebasing is cleaner than merging), then apply Olivers changes to it (again a rebase), and end up with a single PR with all your edits combined and attributed to the right authors. |
I have rebased the master on this branch as per @Treora advice. I have implemented the design by @oliversauter on this branch as well. Please tell me any further changes are required. |
Rebased and merged (de16361). @reficul31: One thing to I would like to check still: are the icons you used in the public domain, not copyrighted? Also, are you okay with waiving your copyrights on your contributions? I try to make&keep this repo completely copyright-free. |
Yes, I willingly waive my copyrights on my contributions.
Yes, they were as far as I remember. The empty screenshot icon was give to me by @oliversauter. I'll do a check on it once. |
This is in reference to the issue.
