Skip to content

Commit c278fbe

Browse files
authored
Merge pull request #555 from GetStream/remove-style-attributes-from-templates
Remove style attributes from templates
2 parents cb09b72 + be3bc13 commit c278fbe

File tree

14 files changed

+15
-36
lines changed

14 files changed

+15
-36
lines changed

.github/workflows/workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- beta
77
- test
88
- theming-v2
9-
- perf-message-list
9+
- remove-style-attributes-from-templates
1010
pull_request:
1111
branches:
1212
- master

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"prerelease": true
5353
},
5454
{
55-
"name": "perf-message-list",
55+
"name": "remove-style-attributes-from-templates",
5656
"prerelease": true
5757
}
5858
],

projects/stream-chat-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stream-chat-angular",
3-
"version": "4.60.0",
3+
"version": "4.60.1-remove-style-attributes-from-templates.1",
44
"description": "Angular components to create chat conversations or livestream style chat",
55
"author": "GetStream",
66
"homepage": "https://getstream.io/chat/",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = '4.60.0';
1+
export const version = '4.60.1-remove-style-attributes-from-templates.1';

projects/stream-chat-angular/src/lib/attachment-list/attachment-list.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@
265265
str-chat__message-attachment-file--item
266266
str-chat-angular__message-attachment-file-single
267267
"
268-
style="cursor: pointer; text-decoration: none"
269268
data-testclass="file-link"
270269
href="{{ attachmentContext.asset_url }}"
271270
target="_blank"

projects/stream-chat-angular/src/lib/attachment-preview-list/attachment-preview-list.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
>
2626
<stream-icon-placeholder icon="retry"></stream-icon-placeholder>
2727
</div>
28-
<div class="rfu-thumbnail__wrapper" style="width: 100; height: 100">
28+
<div class="rfu-thumbnail__wrapper">
2929
<div class="rfu-thumbnail__overlay">
3030
<div
3131
class="rfu-icon-button"

projects/stream-chat-angular/src/lib/avatar/avatar.component.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
location
44
}}"
55
title="{{ name }}"
6-
[style]="{
6+
[ngStyle]="{
77
flexBasis: 'calc(var(--str-chat__spacing-px, 1px) * ' + size + ')',
88
fontSize:
99
initialsType === 'first-letter-of-first-word'
@@ -21,7 +21,7 @@
2121
alt="{{ initials }}"
2222
data-testid="avatar-img"
2323
(error)="isError = true"
24-
[style]="{
24+
[ngStyle]="{
2525
flexBasis: 'calc(var(--str-chat__spacing-px, 1px) * ' + size + ')',
2626
height: 'calc(var(--str-chat__spacing-px, 1px) * ' + size + ')',
2727
objectFit: 'cover',
@@ -30,11 +30,7 @@
3030
fetchpriority="high"
3131
/>
3232
<ng-template #fallback>
33-
<div
34-
data-testid="fallback-img"
35-
style="overflow: hidden; white-space: nowrap; text-overflow: ellipsis"
36-
class="str-chat__avatar-fallback"
37-
>
33+
<div data-testid="fallback-img" class="str-chat__avatar-fallback">
3834
{{ initials }}
3935
</div>
4036
</ng-template>

projects/stream-chat-angular/src/lib/channel-list/channel-list.component.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<div
22
#container
33
data-testid="channel-list-container"
4-
style="max-width: unset"
54
class="str-chat str-chat__channel-list str-chat-channel-list messaging str-chat__theme-{{
65
theme$ | async
76
}}"
@@ -14,10 +13,7 @@
1413
"
1514
class="str-chat__channel-list-messenger"
1615
>
17-
<div
18-
class="str-chat__channel-list-messenger__main"
19-
style="display: flex; flex-direction: column"
20-
>
16+
<div class="str-chat__channel-list-messenger__main">
2117
<ng-content select="[channel-list-top]"></ng-content>
2218
<div
2319
class="str-chat__channel-list-empty"

projects/stream-chat-angular/src/lib/message-input/autocomplete-textarea/autocomplete-textarea.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<stream-avatar-placeholder
6161
data-testclass="avatar"
6262
class="str-chat__avatar str-chat__avatar--circle"
63-
[style]="'height: ' + themeVersion === '2' ? 30 : 20 + 'px'"
63+
[ngStyle]="{ height: themeVersion === '2' ? 30 : 20 + 'px' }"
6464
[size]="themeVersion === '2' ? 30 : 20"
6565
[imageUrl]="item.image || item.user?.image"
6666
[name]="item.autocompleteLabel"

projects/stream-chat-angular/src/lib/message-input/message-input.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
>
2020
<stream-icon-placeholder
2121
icon="close-no-outline"
22-
style="font-size: 15px; line-height: 15px; width: 15px; height: 15px"
2322
></stream-icon-placeholder>
2423
</button>
2524
</div>
@@ -53,7 +52,7 @@
5352
</div>
5453
</div>
5554
</div>
56-
<div class="str-chat__input-flat-wrapper" style="width: 100%">
55+
<div class="str-chat__input-flat-wrapper">
5756
<div
5857
class="{{
5958
mode === 'main'

0 commit comments

Comments
 (0)