Show full dashboard room content
This commit is contained in:
@@ -208,4 +208,42 @@ describe('RoomCardV2', () => {
|
||||
);
|
||||
expect(html).toContain('bar-chart-label-fit-playwright.png');
|
||||
});
|
||||
|
||||
it('renders expanded watcher messages without truncating content', () => {
|
||||
const watcherTail = 'WATCHER_TAIL_VISIBLE';
|
||||
const html = renderToStaticMarkup(
|
||||
createElement(RoomCardV2, {
|
||||
activity: activity({
|
||||
messages: [
|
||||
{
|
||||
id: 'watcher-1',
|
||||
sender: 'bot-1',
|
||||
senderName: 'reviewer',
|
||||
content: `[Watcher] ${'검증 로그 '.repeat(40)} ${watcherTail}`,
|
||||
timestamp: '2026-04-28T02:00:00.000Z',
|
||||
isFromMe: false,
|
||||
isBotMessage: true,
|
||||
sourceKind: 'bot',
|
||||
},
|
||||
],
|
||||
}),
|
||||
activityLoading: false,
|
||||
busy: false,
|
||||
draft: '',
|
||||
entry,
|
||||
expanded: true,
|
||||
inboxItems: [],
|
||||
locale: 'ko',
|
||||
onDraftChange: () => {},
|
||||
onSendMessage: () => {},
|
||||
onToggle: () => {},
|
||||
pinned: true,
|
||||
t,
|
||||
...formatters,
|
||||
}),
|
||||
);
|
||||
|
||||
expect(html).toContain('class="room-watcher-fold"');
|
||||
expect(html).toContain(watcherTail);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -870,7 +870,7 @@ function RoomWatcherFold({
|
||||
</strong>
|
||||
<time>{formatDate(message.timestamp, locale)}</time>
|
||||
</header>
|
||||
<ParsedBody text={message.content} truncate={200} />
|
||||
<ParsedBody text={message.content} />
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
@@ -249,6 +249,7 @@ body:has(.view-stack.view-rooms) .error-card {
|
||||
background: var(--panel);
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
scroll-padding-bottom: 96px;
|
||||
}
|
||||
|
||||
.view-stack.view-rooms .rooms-detail .room-card-v2.is-pinned {
|
||||
@@ -290,7 +291,7 @@ body:has(.view-stack.view-rooms) .error-card {
|
||||
}
|
||||
|
||||
.view-stack.view-rooms .rooms-detail .room-thread-section {
|
||||
padding: 4px 12px 4px 0;
|
||||
padding: 4px 12px 96px 0;
|
||||
}
|
||||
|
||||
.view-stack.view-rooms .rooms-detail .room-card-head {
|
||||
|
||||
Reference in New Issue
Block a user