Skip to content
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

resize avatars in responses #352

Open
ogurec-ogurec opened this issue Oct 31, 2021 · 4 comments
Open

resize avatars in responses #352

ogurec-ogurec opened this issue Oct 31, 2021 · 4 comments

Comments

@ogurec-ogurec
Copy link

Can you please tell me how you can change the size of the avatars in the answers?

That is, the main comment is a large avatar, and in the responses - a little less:

image

@danirus
Copy link
Owner

danirus commented Oct 31, 2021

I wish I could. But as it's distributed, the package doesn't change the size depending on the thread level.
If you are using the JavaScript React plugin, take a look at the code that renders the avatar for each comment, here. As you can see, the size is always 48x48 pixels. And here is the part that would render the avatar if you were not using the JavaScript React plugin. Again, defaults to 48x48 pixels.

Do you have custom code for the JavaScript plugin, or if you use Django templates, do you customize it?

@ogurec-ogurec
Copy link
Author

@danirus I am using your Javascript plagin, and I thought it would be great to reduce the size of the replies, as this will visually highlight the main comment under which the discussion is going. Unfortunately, I'm not good at Javascript, so I don't know how to do it and wrote a question here. :)

@ogurec-ogurec
Copy link
Author

In other words, how can you access exactly the answers, and not the main comment. Maybe one solution is to add a separate class to the response images.

@ogurec-ogurec
Copy link
Author

Maybe can check that the comment is a child and assign a different class to it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants