-
-
Notifications
You must be signed in to change notification settings - Fork 830
Fixes the padding to make the border of invite link visible #7966
Fixes the padding to make the border of invite link visible #7966
Conversation
fixed padding on dialog button to make border of invite link visible
@archijaiswal, could you please rename the PR to something more understandable (e.g. 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.
thanks for taking a look at this! As mentioned in the thread, I'm somewhat concerned that the issue is a bit more involved than just fixing padding - if you have more information about how the dialog is behaving to cause the issue, that would be appreciated.
@@ -22,7 +22,7 @@ limitations under the License. | |||
border: solid 1px $light-fg-color; | |||
margin-bottom: 10px; | |||
margin-top: 10px; | |||
padding: 10px; | |||
padding: 9px; |
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.
9px is a bit of a weird value in our code (we typically stick to multiples of 2 or 4, or at least even numbers) - can this get a comment for why it's a bit different?
More generally though, I'm concerned that this doesn't fix the issue for the future. The dialog should be able to handle additional padding, implying something is going wrong in the dialog's CSS rather than here, I think.
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, alright. Thank you so much for your kind review. I'll surely keep these things in mind and try to come up with a better fix.
(Nothing so specific for 9px since it was the minimum modification I could think of to fix this. Thanks for your direction!)
Please review this @turt2live , 1px was causing this issue. Thanks |
I am wondering why removing |
Actually, that was unnecessarily adding a scroll bar as it's height is fixed. @luixxiul |
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.
argh, I forgot that there was a PR already open for this.
Like in my other review, I think this is a more general problem than the invite dialog: #8165 (review)
It appears as though the bug which caused this has been fixed - thanks for the PR in any case :) |
Fixes element-hq/element-web/issues/20911
Modified the padding on dialog button to make the border of invite link visible.
How it looked before
How it looks now
Signed-off-by: Archi Jaiswal [email protected]
Here's what your changelog entry will look like:
🐛 Bug Fixes
Preview: https://pr7966--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.