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

Max Length of Description #52

Open
tosintech-web opened this issue Dec 9, 2022 · 0 comments
Open

Max Length of Description #52

tosintech-web opened this issue Dec 9, 2022 · 0 comments

Comments

@tosintech-web
Copy link

tosintech-web commented Dec 9, 2022

Long term of linkpreview's description get visibility down especially mobile browsing. I suggest setting maximum length for the description data if the link HTML have a long term for description meta tag data.

I think description can be cut in the controller getting the data, or omit it when view display it.

Example)
linkpreview/widgets/views/view.php line 29

<div class="description"><?= \humhub\modules\content\widgets\richtext\RichText::Preview(Html::encode($linkPreview->description), 180) ?></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants