Skip to content

Commit

Permalink
Fix #2219: Overlapping summary mail content
Browse files Browse the repository at this point in the history
Fix Wall entry layout link/text overflow
  • Loading branch information
buddh4 committed Apr 4, 2017
1 parent c5039b8 commit 44e5ac1
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 26 deletions.
2 changes: 2 additions & 0 deletions protected/humhub/docs/CHANGELOG.md
Expand Up @@ -8,6 +8,8 @@ HumHub Change Log
- Fix: Mentioning notificaiton in user not working
- Fix: Catch yii\db\Expression error for updated_at in wallentry
- Enh: Added 'client.back' js action
- Fix #2219: Overlapping summary mail content
- Fix Wall entry layout link/text overflow

1.2.0-beta.4 (March 28, 2017)
--------------------------------
Expand Down
47 changes: 23 additions & 24 deletions protected/humhub/modules/activity/views/layouts/mail.php
Expand Up @@ -65,30 +65,29 @@

<tr>
<td style="font-size: 13px; line-height: 22px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:#555555; font-weight:300; text-align:left; ">

<!-- content output-->
<?= $content; ?>

<!-- check if activity object has a space -->
<?php if ($record->content->space !== null): ?>
(<?= Yii::t('ActivityModule.views_activityLayoutMail', 'via'); ?>
<a href="<?= $record->content->space->createUrl('/space/space', [], true); ?>"
style="text-decoration: none; color: #555555;">
<?= Html::encode($record->content->space->name); ?></a>)
<?php endif; ?>

<?php if ($url != "") : ?>
<!-- START: CONTENT LINK -->
<span
style="text-decoration: none; color: #7191a8;"> - <a
href="<?= $url; ?>"
style="text-decoration: none; color: #7191a8; "><?= Yii::t('ActivityModule.views_activityLayoutMail', 'see online'); ?></a></span>
<!-- END: CONTENT LINK -->
<?php endif; ?>




<!-- prevent content overflow -->
<div style="width:480px;overflow:hidden;text-overflow:ellipsis;font-size: 13px; line-height: 22px; font-family:Open Sans,Arial,Tahoma, Helvetica, sans-serif; color:#555555; font-weight:300; text-align:left;">
<!-- content output-->
<?= $content; ?>

<!-- check if activity object has a space -->
<?php if ($record->content->space !== null): ?>
(<?= Yii::t('ActivityModule.views_activityLayoutMail', 'via'); ?>
<a href="<?= $record->content->space->createUrl('/space/space', [], true); ?>"
style="text-decoration: none; color: #555555;">
<?= Html::encode($record->content->space->name); ?></a>)
<?php endif; ?>

<?php if ($url != "") : ?>
<!-- START: CONTENT LINK -->
<span
style="text-decoration: none; color: #7191a8;"> - <a
href="<?= $url; ?>"
style="text-decoration: none; color: #7191a8; "><?= Yii::t('ActivityModule.views_activityLayoutMail', 'see online'); ?></a></span>
<!-- END: CONTENT LINK -->
<?php endif; ?>
</div>

</td>
</tr>

Expand Down
8 changes: 7 additions & 1 deletion static/less/stream.less
Expand Up @@ -30,7 +30,13 @@
// Wall-Entries
.wall-entry {
position: relative;


.content {
p, a {
overflow:hidden;
text-overflow:ellipsis;
}
}
.media {
overflow: visible;
}
Expand Down
2 changes: 1 addition & 1 deletion themes/HumHub/css/theme.css

Large diffs are not rendered by default.

0 comments on commit 44e5ac1

Please sign in to comment.