chore: channel title nowrap

This commit is contained in:
Tristan Yang
2023-07-07 19:14:18 +08:00
parent 29d2579e69
commit 82915bfac7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ function ChannelChat({ cid = 0, dropFiles = [] }: Props) {
<GoBackNav /> <GoBackNav />
<div className="flex items-center gap-1"> <div className="flex items-center gap-1">
<ChannelIcon personal={!is_public} /> <ChannelIcon personal={!is_public} />
<span className="text-gray-800 dark:text-white">{name}</span> <span className="text-gray-800 dark:text-white whitespace-nowrap">{name}</span>
<span className="ml-2 text-gray-500 hidden md:block">{description}</span> <span className="ml-2 text-gray-500 hidden md:block">{description}</span>
</div> </div>
</header> </header>
+1 -1
View File
@@ -28,7 +28,7 @@ export default function GuestChannelChat({ cid = 0 }: Props) {
<GoBackNav /> <GoBackNav />
<div className="flex items-center gap-1"> <div className="flex items-center gap-1">
<ChannelIcon personal={!is_public} /> <ChannelIcon personal={!is_public} />
<span className="text-gray-800 dark:text-white">{name}</span> <span className="text-gray-800 dark:text-white whitespace-nowrap">{name}</span>
<span className="ml-2 text-gray-500 hidden md:block ">{description}</span> <span className="ml-2 text-gray-500 hidden md:block ">{description}</span>
</div> </div>
</header> </header>