Move ServerCard dimmed style to Card theme variant
Replaces inline style and opacity prop on ServerCard with a new 'disabled' variant on the Card theme, per AGENTS.md rules against inline styles on components. Also picks up prettier formatting on ResourcesScreen. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
064b807ea4
commit
4f37321e2c
1 changed files with 18 additions and 14 deletions
|
|
@ -136,9 +136,7 @@ export function ResourcesScreen({
|
|||
<ResourcePreviewPanel
|
||||
{...selectedResource}
|
||||
onRefresh={() => onReadResource(selectedResource.uri)}
|
||||
onSubscribe={() =>
|
||||
onSubscribeResource(selectedResource.uri)
|
||||
}
|
||||
onSubscribe={() => onSubscribeResource(selectedResource.uri)}
|
||||
onUnsubscribe={() =>
|
||||
onUnsubscribeResource(selectedResource.uri)
|
||||
}
|
||||
|
|
@ -146,9 +144,7 @@ export function ResourcesScreen({
|
|||
</DetailCard>
|
||||
) : (
|
||||
<DetailCard>
|
||||
<EmptyState>
|
||||
Enter a URI and click Read to preview
|
||||
</EmptyState>
|
||||
<EmptyState>Enter a URI and click Read to preview</EmptyState>
|
||||
</DetailCard>
|
||||
)}
|
||||
</ScrollArea.Autosize>
|
||||
|
|
@ -163,9 +159,7 @@ export function ResourcesScreen({
|
|||
{...selectedResource}
|
||||
onRefresh={() => onReadResource(selectedResource.uri)}
|
||||
onSubscribe={() => onSubscribeResource(selectedResource.uri)}
|
||||
onUnsubscribe={() =>
|
||||
onUnsubscribeResource(selectedResource.uri)
|
||||
}
|
||||
onUnsubscribe={() => onUnsubscribeResource(selectedResource.uri)}
|
||||
/>
|
||||
</DetailCard>
|
||||
</ScrollArea.Autosize>
|
||||
|
|
|
|||
Loading…
Reference in a new issue