fix: panel separator borders and reaction spacing to match prototype
Replace @apply border-none with @apply border-0 on global * selector. border-none sets border-style: none, which silently kills all Tailwind border utilities (they only set width/color, relying on preflight's border-style: solid). border-0 sets border-width: 0 instead, preserving the solid style so border-r/border-l/border-b utilities render correctly. - Add border-r border-border-hard to ChannelSidebar (both DM and server views) - Add border-l border-border-hard to MemberSidebar and ActivityPanel - Replace shadow-header with border-b border-border-hard on sidebar headers - Remove duplicate mt-1 on reaction container (parent gap-1 already provides 4px)
This commit is contained in:
@@ -243,7 +243,7 @@ export function Message({ message, isCompact, isFirstInGroup }: MessageProps) {
|
|||||||
|
|
||||||
{/* Reactions */}
|
{/* Reactions */}
|
||||||
{Object.keys(reactionGroups).length > 0 && (
|
{Object.keys(reactionGroups).length > 0 && (
|
||||||
<div className="flex flex-wrap gap-1 mt-1">
|
<div className="flex flex-wrap gap-1">
|
||||||
{Object.entries(reactionGroups).map(([emoji, { count, me }]) => (
|
{Object.entries(reactionGroups).map(([emoji, { count, me }]) => (
|
||||||
<button
|
<button
|
||||||
key={emoji}
|
key={emoji}
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export function ActivityPanel() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-60 bg-surface-channel flex-shrink-0 overflow-y-auto select-none no-scrollbar hidden md:block">
|
<div className="w-60 bg-surface-channel flex-shrink-0 overflow-y-auto select-none no-scrollbar hidden md:block border-l border-border-hard">
|
||||||
<div className="p-3">
|
<div className="p-3">
|
||||||
<h3 className="text-[20px] font-bold text-txt-primary mb-4 px-2">Active Now</h3>
|
<h3 className="text-[20px] font-bold text-txt-primary mb-4 px-2">Active Now</h3>
|
||||||
|
|
||||||
|
|||||||
@@ -119,8 +119,8 @@ export function ChannelSidebar() {
|
|||||||
if (!server) {
|
if (!server) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="w-60 md:w-full bg-surface-channel flex flex-col flex-shrink-0 select-none md:pl-[72px]">
|
<div className="w-60 md:w-full bg-surface-channel flex flex-col flex-shrink-0 select-none md:pl-[72px] border-r border-border-hard">
|
||||||
<div className="h-12 px-[10px] flex items-center shadow-header z-10">
|
<div className="h-12 px-[10px] flex items-center border-b border-border-hard z-10">
|
||||||
<button className="flex-1 bg-surface-base text-txt-tertiary text-[13px] font-medium py-[5px] px-2 rounded-[4px] text-left hover:bg-surface-base/80 transition-colors">
|
<button className="flex-1 bg-surface-base text-txt-tertiary text-[13px] font-medium py-[5px] px-2 rounded-[4px] text-left hover:bg-surface-base/80 transition-colors">
|
||||||
Find or start a conversation
|
Find or start a conversation
|
||||||
</button>
|
</button>
|
||||||
@@ -271,9 +271,9 @@ export function ChannelSidebar() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="w-60 md:w-full bg-surface-channel flex flex-col flex-shrink-0 select-none md:pl-[72px]">
|
<div className="w-60 md:w-full bg-surface-channel flex flex-col flex-shrink-0 select-none md:pl-[72px] border-r border-border-hard">
|
||||||
{/* Server header */}
|
{/* Server header */}
|
||||||
<div className="h-12 flex items-center shadow-header z-10 group/header">
|
<div className="h-12 flex items-center border-b border-border-hard z-10 group/header">
|
||||||
<button
|
<button
|
||||||
onClick={() => openModal('serverSettings')}
|
onClick={() => openModal('serverSettings')}
|
||||||
className="flex-1 h-full px-4 flex items-center justify-between hover:bg-interactive-hover transition-colors min-w-0"
|
className="flex-1 h-full px-4 flex items-center justify-between hover:bg-interactive-hover transition-colors min-w-0"
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ export function MemberSidebar() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-60 bg-surface-members flex-shrink-0 overflow-y-auto select-none no-scrollbar hidden md:block">
|
<div className="w-60 bg-surface-members flex-shrink-0 overflow-y-auto select-none no-scrollbar hidden md:block border-l border-border-hard">
|
||||||
<div className="p-3">
|
<div className="p-3">
|
||||||
{/* Role-based groups */}
|
{/* Role-based groups */}
|
||||||
{roleGroups.map(([key, group]) => (
|
{roleGroups.map(([key, group]) => (
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
@apply border-none;
|
@apply border-0;
|
||||||
outline: none !important;
|
outline: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user