mirror of
https://github.com/friendica/friendica
synced 2025-01-03 14:42:18 +00:00
Merge pull request #2 from loma-one/revert-1-loma-one-patch-3
Revert "CSS instructions for formatting in the notification.tpl"
This commit is contained in:
commit
66f4c70bfe
1 changed files with 1 additions and 26 deletions
|
@ -1,29 +1,4 @@
|
||||||
|
|
||||||
<style>
|
|
||||||
/* Flexbox layout to align the icon and text in a single line */
|
|
||||||
.notif-item a {
|
|
||||||
display: flex;
|
|
||||||
align-items: flex-start; /* Aligns items at the start of the flex container */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Margin to create space between the icon and the text */
|
|
||||||
.notif-image {
|
|
||||||
margin-right: 10px; /* Adjust the space between the icon and text as needed */
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Styles to ensure the text wraps properly after 70 characters */
|
|
||||||
.notif-text {
|
|
||||||
display: inline-block; /* Allows the text to be constrained within a block-level element */
|
|
||||||
max-width: 70ch; /* Limits the maximum width of the text to 70 characters */
|
|
||||||
overflow-wrap: break-word; /* Ensures that words will break if necessary to fit the width */
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<div class="notif-item {{if !$item_seen}}unseen{{/if}}" {{if $item_seen}}aria-hidden="true"{{/if}}>
|
<div class="notif-item {{if !$item_seen}}unseen{{/if}}" {{if $item_seen}}aria-hidden="true"{{/if}}>
|
||||||
<a href="{{$notification.link}}">
|
<a href="{{$notification.link}}"><img src="{{$notification.image}}" aria-hidden="true" class="notif-image">{{$notification.text}} <span class="notif-when">{{$notification.ago}}</span></a>
|
||||||
<img src="{{$notification.image}}" aria-hidden="true" class="notif-image">
|
|
||||||
<span class="notif-text">{{$notification.text}}</span>
|
|
||||||
<span class="notif-when">{{$notification.ago}}</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue