@linktr.ee/messaging-react 1.18.0 → 1.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/messaging-react",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "description": "React messaging components built on messaging-core for web applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -114,20 +114,20 @@ const CustomChannelHeader: React.FC<{
114
114
 
115
115
  return (
116
116
  <div className="@container">
117
- <div className="flex justify-between items-center @lg:hidden">
117
+ <div className="grid grid-cols-[1fr_auto_1fr] w-full items-center @lg:hidden">
118
118
  <div className="flex items-center gap-2">
119
- <button
120
- className={classNames(
121
- 'size-10 rounded-full bg-[#F1F0EE] flex items-center justify-center',
122
- !showBackButton && 'invisible'
123
- )}
124
- onClick={onBack || (() => {})}
125
- type="button"
126
- aria-label="Back to conversations"
127
- >
128
- <ArrowLeftIcon className="size-5 text-black/90" />
129
- </button>
130
- <div className="size-10" />
119
+ {showBackButton && (
120
+ <button
121
+ className={classNames(
122
+ 'size-10 rounded-full bg-[#F1F0EE] flex items-center justify-center'
123
+ )}
124
+ onClick={onBack || (() => {})}
125
+ type="button"
126
+ aria-label="Back to conversations"
127
+ >
128
+ <ArrowLeftIcon className="size-5 text-black/90" />
129
+ </button>
130
+ )}
131
131
  </div>
132
132
  <div className="flex flex-col gap-1 items-center">
133
133
  <Avatar
@@ -140,7 +140,7 @@ const CustomChannelHeader: React.FC<{
140
140
  {participantName}
141
141
  </h1>
142
142
  </div>
143
- <div className="flex items-center gap-2">
143
+ <div className="flex justify-end items-center gap-2">
144
144
  {showStarButton && (
145
145
  <button
146
146
  className="size-10 rounded-full bg-[#F1F0EE] flex items-center justify-center"