diff --git a/src/components/room/DiscordChannelSidebar.tsx b/src/components/room/DiscordChannelSidebar.tsx
index d90527f..f1ef110 100644
--- a/src/components/room/DiscordChannelSidebar.tsx
+++ b/src/components/room/DiscordChannelSidebar.tsx
@@ -76,13 +76,11 @@ const DraggableRow = memo(function DraggableRow({
{...attributes}
{...listeners}
className={cn(
- 'cursor-grab active:cursor-grabbing',
+ 'group cursor-grab active:cursor-grabbing',
isDragging && 'opacity-40',
)}
>
-
- {children}
-
+ {children}
);
});
@@ -374,36 +372,6 @@ export const DiscordChannelSidebar = memo(function DiscordChannelSidebar({
onMoveRoom={handleMoveRoom}
/>
- {/* Create category */}
- {creatingCat ? (
-
-
setNewCatName(e.target.value)}
- onKeyDown={(e) => {
- if (e.key === 'Enter') handleCreateCategory();
- if (e.key === 'Escape') { setCreatingCat(false); setNewCatName(''); }
- }}
- placeholder="Category name"
- className="h-7 text-xs"
- />
-
-
-
- ) : (
-
- )}
-
{rooms.length === 0 && (
No channels yet
@@ -417,6 +385,36 @@ export const DiscordChannelSidebar = memo(function DiscordChannelSidebar({
)}
+
+ {/* Add Category — always at the bottom */}
+ {creatingCat ? (
+
+
setNewCatName(e.target.value)}
+ onKeyDown={(e) => {
+ if (e.key === 'Enter') handleCreateCategory();
+ if (e.key === 'Escape') { setCreatingCat(false); setNewCatName(''); }
+ }}
+ placeholder="Category name"
+ className="h-6 text-[10px]"
+ />
+
+
+
+ ) : (
+
+ )}
{/* Footer */}
diff --git a/src/index.css b/src/index.css
index d61bb09..43162f8 100644
--- a/src/index.css
+++ b/src/index.css
@@ -342,7 +342,7 @@
display: flex;
align-items: center;
gap: 6px;
- padding: 6px 8px;
+ padding: 4px 8px;
border-radius: 4px;
cursor: pointer;
color: var(--room-text-muted);
@@ -377,8 +377,8 @@
.discord-channel-hash {
opacity: 0.7;
- font-size: 18px;
- line-height: 1;
+ width: 12px !important;
+ height: 12px !important;
flex-shrink: 0;
}
@@ -387,6 +387,7 @@
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
+ text-align: left;
}
.discord-mention-badge {