-
Notifications
You must be signed in to change notification settings - Fork 30
Conversation
1. Removed duplicated rule 2. Fixed scroll issue
Looks better than `overflow: hidden`.
This looks better to the eye, IMHO.
1. Background is set to `cover`, this will resize the background to fit the `div` while avoiding aspect ratio issues. 2. Added more space for the logout button.
1. Added more space for it 2. Changed the font size to match the UI overall font-size
The required extra space is achieved using the columns sass module.
1. The vertical padding matches the rest of sub elements' vertical padding 2. The horizontal padding now has enough space for the increment/decrement buttons to look better
This will differentiate the card from the rest of the post, making it easier to follow.
This will make the `x` icon go in the middle of close button
Fixed overflow issues
This will make the app login on hitting enter upon entering authentication information, instead of manually clicking on the login button.
1. Width 2. Button
Required for some positionings to work correctly
This will reflect the changes to the column sass module.
@DRSDavidSoft are you using eslint to check linting before push? |
@DRSDavidSoft Here is the error: By the way, welcome to the project and thank you! |
Property should be placed on a new line
@tahnik Great! Why using two CI services may I ask? |
Trailing spaces are not allowed, apparently.
@DRSDavidSoft Travis doesn't support Windows. We use AppVeyor for Windows and Travis for macOS, Linux |
@tahnik Can you review the PR? |
@DRSDavidSoft I did, check above |
@DRSDavidSoft have you found the reviews? Just making sure! |
@@ -51,8 +52,8 @@ | |||
cursor: pointer | |||
.logout | |||
position: absolute | |||
bottom: 5px | |||
left: 10px | |||
bottom: 10px |
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.
change to 0.25rem
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.
Done. Initially I used px
instead of rem
because the previous commit also used it.
I suppose most of the units should be using rem
here, right?
bottom: 5px | ||
left: 10px | ||
bottom: 10px | ||
left: 1.5rem |
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.
change to 0.5rem instead. Looks a bit odd when it's so high up.
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.
Are you referring to the left
property? I set it to 0.5rem
, but could you comment on the suitable values for both left
and bottom
properties?
This will prevent unwanted selection of the text in increment, decrement, score and comments icon.
@DRSDavidSoft could you give me your email so I could add you in slack? It's easier to talk over there. Thanks |
@DRSDavidSoft I sent you the request. Please join. |
Thank you, @tahnik. I joined. What about this PR? |
The PR is conflicting with the edits. Could you review & merge it before more conflicts to show up? |
I resolved the conflicts. Can you please look at the reviews here: https://github.com/tahnik/devRantron/pull/136/files? I won't be able to merge this before you fix these stuff. |
@tahnik If you've reviewed/commented on my commits, I don't seem to find anything from you. |
yeah, because I just started to push to your branch and fix those reviews @DRSDavidSoft |
@@ -44,7 +44,12 @@ class Login extends Component { | |||
<div className="auth_image" > | |||
<img alt="devrant" src="./res/images/devrant_sidebar.png" /> | |||
</div> | |||
<div className="auth_form" > | |||
<div className="auth_form" |
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.
We really need this, but this doesn't work for some reason. Can you check?
Edit: The reason is this is a div, not a form. So onSubmit won't be triggered.
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.
Why not change it to a form
? It makes sense
Otherwise, we should write a handler on both fields to check e.which == 13
on keypress
, which I don't recommend
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.
We have recently fixed it using keyDownEvent. so don't worry about this one.
@@ -2,7 +2,7 @@ | |||
font-size: 1.5rem | |||
display: flex | |||
background-color: #40415A | |||
padding: 0.5rem | |||
padding: 0.8rem 1rem |
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.
@Dacexi can you review this one?
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.
@RekkyRek I'd be grateful if you did!
padding: 0rem 0rem 1rem 0rem | ||
height: calc(100vh - 2.8rem - 1.5rem) | ||
padding: 0 10px | ||
height: 100vh |
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.
Don't make it 100vh please. Keep some padding in the bottom. This can cause side effects.
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.
@tahnik Tested with some other situations, I agree.
overflow-y: scroll | ||
overflow-x: hidden | ||
position: relative | ||
overflow: auto |
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.
Sometimes some rants cause overflow-x issues. It would be better to keep it the way it is.
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.
Nope, it's not. I think I know what you're referring to. Instead of overflow-x
, this should be done:
https://stackoverflow.com/q/3058866/1454514
or better - https://stackoverflow.com/a/18706058/1454514
TL;DR: word-wrap: break-word;
& word-break: break-all;
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.
You can add word-break: break-all; but it is still better to keep overflow-x hidden.
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.
@tahnik I hear you, but it causes problems with box-shadow
. If it's going to be hidden
, there should be enough padding
for the box-shadow
IMHO.
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.
@DRSDavidSoft break-all causes some other problems. For example, it also breaks words which look horrible. box-shadow looks fine now so have a look.
transform: translateZ(0) | ||
-webkit-transform: translateZ(0) | ||
padding: 0rem 0rem 1rem 0rem | ||
height: calc(100vh - 2.8rem - 1.5rem) | ||
padding: 0 10px |
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.
This is causing the column not to align with the topbar. Is this what you intended? I don't think that looks nice. Maybe @Dacexi can confirm it.
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.
@tahnik Can you post a screenshot from before and after please?
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.
I fixed it in another commit.
@@ -51,8 +52,8 @@ | |||
cursor: pointer | |||
.logout | |||
position: absolute | |||
bottom: 5px | |||
left: 10px | |||
bottom: 10px |
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.
This is causing the shadow in the back to misalign
@@ -41,7 +40,7 @@ | |||
width: 100% | |||
.item_card.shadow | |||
&:hover | |||
box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23) | |||
box-shadow: 0 2px 0px rgba(0, 0, 0, 0.19), 0 3px 4px rgba(0, 0, 0, 0.23) |
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.
Don't think it's looking nice either. Looks more like a black border than a shadow.
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.
@tahnik, OK, let's keep the previous one, but please make sure it has enough padding
.
@@ -44,7 +44,13 @@ class Login extends Component { | |||
<div className="auth_image" > | |||
<img alt="devrant" src="./res/images/devrant_sidebar.png" /> | |||
</div> | |||
<div className="auth_form" > | |||
<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.
Please remove this as this is not working :)
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.
Can .auth_form
be an actual <form>
? :)
fuck me sorry. I forgot to request the changes |
can you see the reviews now @DRSDavidSoft |
…too close to the columns and messing up the structure
@DRSDavidSoft does everything looks good to you now? |
@tahnik Seems good! I was wondering why I didn't get any reviews from you. Let's merge it :) |
According to the individual commits, minor fixes made to several parts of the UI.