narayan954 / dummygram

DummyGram is a social media application where we have posts, stories, chat, friends, authentication, comment, delete, share and like feature. It uses ReactJs in the frontend for the UI and Firebase for the backend storing the users, posts, stories and comments.
https://narayan954.github.io/dummygram/
MIT License
78 stars 184 forks source link

[FEATURE] fix post's height #144

Closed narayan954 closed 1 year ago

narayan954 commented 1 year ago

Description

Currently posts are of uneven lengths, and this is inconsistent, we can fix the post height, so the feed is consistent. Also fix the height of posts in comments popup and set a minimum height as well.

Screenshots

No response

Additional information

No response

Rishav1707 commented 1 year ago

Could you tell me the max height you want in your post? @narayan954 I think the max-height: 550px; in a post and min-height: 40px; in the comments popup would be a better choice.

narayan954 commented 1 year ago

Could you tell me the max height you want in your post? @narayan954 I think the max-height: 550px; in a post and min-height: 40px; in the comments popup would be a better choice.

Yes, you're right, would you like to work on this? and under which program kwoc or codepeak ?

Rishav1707 commented 1 year ago

under which program kwoc or codepeak ?

What does it mean ? @narayan954

Rishav1707 commented 1 year ago

Yes, you're right, would you like to work on this?

Yeah sure...

narayan954 commented 1 year ago

under which program kwoc or codepeak ?

What does it mean ? @narayan954

this project is also participating in kwoc and codepeak open source programs

Rishav1707 commented 1 year ago

under which program kwoc or codepeak ?

What does it mean ? @narayan954

this project is also participating in kwoc and codepeak open source programs

Ohh nice

narayansoni commented 1 year ago

under which program kwoc or codepeak ?

What does it mean ? @narayan954

this project is also participating in kwoc and codepeak open source programs

Ohh nice

so are you working independent?

Rishav1707 commented 1 year ago

under which program kwoc or codepeak ?

What does it mean ? @narayan954

this project is also participating in kwoc and codepeak open source programs

Ohh nice

so are you working independent?

Yaah

narayan954 commented 1 year ago

under which program kwoc or codepeak ?

What does it mean ? @narayan954

this project is also participating in kwoc and codepeak open source programs

Ohh nice

so are you working independent?

Yaah

Great , go ahead! :)

Rishav1707 commented 1 year ago

comments

What is the class name of this image? @narayan954 I am unable to find.

narayan954 commented 1 year ago

comments

What is the class name of this image? @narayan954 I am unable to find.

that's just a button with some inline css defined image I hope this img helps

Rishav1707 commented 1 year ago

comments What is the class name of this image? @narayan954 I am unable to find.

that's just a button with some inline css defined image I hope this img helps

Thanks

Rishav1707 commented 1 year ago

Why website is not running @narayan954

narayan954 commented 1 year ago

Why website is not running @narayan954

it's up and running https://narayan954.github.io/dummygram/

Rishav1707 commented 1 year ago

Why website is not running @narayan954

it's up and running https://narayan954.github.io/dummygram/

See it's continuously loading:

https://user-images.githubusercontent.com/97666287/210075847-229534b9-ad45-434c-b703-fa18c20f0aca.mp4

narayan954 commented 1 year ago

Why website is not running @narayan954

it's up and running https://narayan954.github.io/dummygram/

See it's continuously loading:

https://user-images.githubusercontent.com/97666287/210075847-229534b9-ad45-434c-b703-fa18c20f0aca.mp4

I don't think that's an issue with the site https://user-images.githubusercontent.com/77617189/210081746-2d9eb54d-eda5-455c-819f-8bbf21861043.mp4

Rishav1707 commented 1 year ago

Screenshot (6)

See this error @narayan954

narayan954 commented 1 year ago

Screenshot (6)

See this error @narayan954

okay now I know the issue, rules are set to allow only authorised(logged in) users to access db , and neither you're logged in, nor the login/signup option is available for logging in. That's why you should always check the console. I'm outstation,but will change rule temporarily till a solution is implemented

narayan954 commented 1 year ago

Screenshot (6)

See this error @narayan954

okay now I know the issue, rules are set to allow only authorised(logged in) users to access db , and neither you're logged in, nor the login/signup option is available for logging in. That's why you should always check the console. I'm outstation,but will soon change rule temporarily till a solution is implemented , and inform you

Rishav1707 commented 1 year ago

Screenshot (6) See this error @narayan954

okay now I know the issue, rules are set to allow only authorised(logged in) users to access db , and neither you're logged in, nor the login/signup option is available for logging in. That's why you should always check the console. I'm outstation,but will soon change rule temporarily till a solution is implemented , and inform you

Ok

narayan954 commented 1 year ago

@Rishav1707 I've pushed some changes and it should work now. Pull the changes.

dostonnabotov commented 1 year ago

Hi, @narayan954! If the issue hasn't been resolved, I would be happy to pick it up and fix it. I think setting only min-height on the posts will be sufficient enough to allow it grow. But, having max-height would cause overflows since you can tell how lengthy the posts can be.

By the way, website isn't loading just like in @Rishav1707 case. I think, we could implement a welcome page for users who haven't logged in, perhaps.

narayan954 commented 1 year ago

Hi, @narayan954! If the issue hasn't been resolved, I would be happy to pick it up and fix it. I think setting only min-height on the posts will be sufficient enough to allow it grow. But, having max-height would cause overflows since you can tell how lengthy the posts can be.

By the way, website isn't loading just like in @Rishav1707 case. I think, we could implement a welcome page for users who haven't logged in, perhaps.

Hi @dostonnabotov @Rishav1707 is working on it , though you're right about the props , I recalled that images need to be cropped to make the max-height prop work and that seems not feasible right now as there's no crop functionality for users, so min-height should do.

About loading issue, website is working now , you might need to refresh after signing in. Welcome/login page was also assigned but no progress as of now.

AgnishaDe commented 1 year ago

I want to work on this issue under JWOC

narayan954 commented 1 year ago

Sure, go ahead @AgnishaDe :)

narayan954 commented 1 year ago

@AgnishaDe are you still working on this?

Hritik1503 commented 1 year ago

I want to work for on this issue under jwoc , please assign me

narayan954 commented 1 year ago

You can work on this issue

Hritik1503 commented 1 year ago

Sir I can't display any post so please tell me what your main file I will send you screenshot to display on my screen Screenshot (15)

rhithesh commented 1 year ago

please assign it to me as I am working on it.

narayan954 commented 1 year ago

please assign it to me as I am working on it.

Hi @rhithesh please mention how're you planning to solve this issue so I can confirm you understand the issue :) as this issue has some confusions

rhithesh commented 1 year ago

In post.jsx there is a class for each part of the post like header, text ,and container, I have went inside ImageSlider.jsx and made the height a constant. I understood the Read more component seems to be not working properly so I am working on that. Also I guess we need to handle a case when there is only a caption. thanks @narayan954

narayan954 commented 1 year ago

In post.jsx there is a class for each part of the post like header, text ,and container, I have went inside ImageSlider.jsx and made the height a constant. I understood the Read more component seems to be not working properly so I am working on that. Also I guess we need to handle a case when there is only a caption. thanks @narayan954

That's good Hithesh but did you check if making height a constant affecting the feed in a negative way, like some post images are being cropped out incorrectly or not? Thanks for spotting other issues as well, you may create separate issues for them and get yourself assigned to them :)

Thank you

narayan954 commented 1 year ago

I went through issue #59 I think that'd help with this issue as well