Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions changelog/unreleased/access-raw-api-toggle-placement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### English

- Access page: the Show raw API control sits beside the Native API title (not far right), and uses a secondary button when collapsed so it is easier to find.

### 中文

- Access 页:「展开原始 API」按钮紧挨「原生 API」标题(不再靠右),收起态使用 secondary 按钮样式,更容易发现。
12 changes: 6 additions & 6 deletions frontend/src/components/access/RawApiPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ export function RawApiPanel({

return (
<section className="space-y-3">
<div className="flex flex-wrap items-center justify-between gap-3">
<div className="min-w-0">
<div className="min-w-0 space-y-0.5">
<div className="flex flex-wrap items-center gap-2.5">
<h3 className="text-body font-semibold">{t('accessTabApi')}</h3>
<p className="mt-0.5 text-caption leading-5 text-muted">{t('nativeApiHint')}</p>
<Button size="sm" variant={open ? 'ghost' : 'secondary'} onPress={() => onOpenChange(!open)}>
{open ? t('rawApiHide') : t('rawApiShow')}
</Button>
</div>
<Button size="sm" variant={open ? 'secondary' : 'ghost'} onPress={() => onOpenChange(!open)}>
{open ? t('rawApiHide') : t('rawApiShow')}
</Button>
<p className="text-caption leading-5 text-muted">{t('nativeApiHint')}</p>
</div>

{open ? (
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Loading
Loading