Skip to content

Commit 89402b4

Browse files
committed
fix: remove duplicate commission detail panel
1 parent d2b77cd commit 89402b4

1 file changed

Lines changed: 0 additions & 58 deletions

File tree

  • src/WinXP/apps/commission-viewer

src/WinXP/apps/commission-viewer/index.js

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -92,30 +92,6 @@ function CommissionViewer({ commission }) {
9292
/>
9393
</div>
9494
</PreviewArea>
95-
<DetailsPanel>
96-
<DetailMeta>
97-
<span>{commission.date || 'date not provided'}</span>
98-
<span>
99-
{' - by '}
100-
{commission.artistLink ? (
101-
<a
102-
href={commission.artistLink}
103-
target="_blank"
104-
rel="noreferrer"
105-
>
106-
{artistLabel}
107-
</a>
108-
) : (
109-
artistLabel
110-
)}
111-
</span>
112-
</DetailMeta>
113-
{commission.description && (
114-
<DetailBlock>
115-
<p>{commission.description}</p>
116-
</DetailBlock>
117-
)}
118-
</DetailsPanel>
11995
</Body>
12096
</MainPanel>
12197
</Content>
@@ -303,8 +279,6 @@ const Body = styled.div`
303279
flex: 1;
304280
min-height: 0;
305281
display: flex;
306-
flex-direction: column;
307-
gap: 12px;
308282
overflow: hidden;
309283
`;
310284

@@ -342,38 +316,6 @@ const PreviewArea = styled.div`
342316
}
343317
`;
344318

345-
const DetailsPanel = styled.aside`
346-
flex-shrink: 0;
347-
padding: 8px 10px 0;
348-
color: #1d385d;
349-
font-size: 12px;
350-
overflow: auto;
351-
`;
352-
353-
const DetailMeta = styled.div`
354-
font-size: 12px;
355-
color: #35506d;
356-
white-space: normal;
357-
word-wrap: break-word;
358-
overflow-wrap: anywhere;
359-
360-
a {
361-
color: inherit;
362-
text-decoration: underline;
363-
}
364-
`;
365-
366-
const DetailBlock = styled.div`
367-
margin-top: 6px;
368-
369-
p {
370-
margin: 0;
371-
line-height: 1.5;
372-
white-space: pre-wrap;
373-
color: #35506d;
374-
}
375-
`;
376-
377319
const EmptyState = styled.div`
378320
width: 100%;
379321
height: 100%;

0 commit comments

Comments
 (0)