Skip to content

EspoCRM – Open Source CRM Application

Pin icon reposition

Yuriied41fc1ddfbe
diff --git a/client/res/templates/stream/notes/email-received.tpl b/client/res/templates/stream/notes/email-received.tpl
index ae120b37d3..8c46854571 100644
--- a/client/res/templates/stream/notes/email-received.tpl
+++ b/client/res/templates/stream/notes/email-received.tpl
@@ -60,8 +60,10 @@
{{/if}}
<div class="stream-date-container">
- <a class="text-muted small" href="#Note/view/{{model.id}}">{{{createdAt}}}</a>
{{#if isPinned}}
- <span class="fas fa-map-pin fa-sm pin-icon" title="{{translate 'Pinned' scope='Note'}}"></span>
+ <div class="pin-icon-container">
+ <span class="fas fa-map-pin fa-sm" title="{{translate 'Pinned' scope='Note'}}"></span>
+ </div>
{{/if}}
+ <a class="text-muted small" href="#Note/view/{{model.id}}">{{{createdAt}}}</a>
</div>
diff --git a/client/res/templates/stream/notes/post.tpl b/client/res/templates/stream/notes/post.tpl
index 48ba78dd4e..365bac2964 100644
--- a/client/res/templates/stream/notes/post.tpl
+++ b/client/res/templates/stream/notes/post.tpl
@@ -32,9 +32,11 @@
{{/if}}
<div class="stream-date-container">
- <a class="text-muted small" href="#Note/view/{{model.id}}">{{{createdAt}}}</a>
{{#if isPinned}}
- <span class="fas fa-map-pin fa-sm pin-icon" title="{{translate 'Pinned' scope='Note'}}"></span>
+ <div class="pin-icon-container">
+ <span class="fas fa-map-pin fa-sm" title="{{translate 'Pinned' scope='Note'}}"></span>
+ </div>
{{/if}}
+ <a class="text-muted small" href="#Note/view/{{model.id}}">{{{createdAt}}}</a>
<div class="reactions-container">{{{reactions}}}</div>
</div>
diff --git a/frontend/less/espo/custom.less b/frontend/less/espo/custom.less
index 1b7931a024..74cd91eec8 100644
--- a/frontend/less/espo/custom.less
+++ b/frontend/less/espo/custom.less
@@ -2290,21 +2290,23 @@ td > span.color-icon {
}
.stream-date-container {
- display: inline-block;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: var(--6px);
+
width: 100%;
- .pin-icon {
+ .pin-icon-container {
display: inline-block;
- float: right;
- position: absolute;
- right: var(--14px);
- top: var(--36px);
- color: var(--text-muted-color);
+ > span {
+ color: var(--text-muted-color);
+ }
}
.reactions-container {
- float: right;
+ margin-left: auto;
display: inline-flex;
width: calc(100% - var(--190px));
flex-wrap: wrap;