Skip to content

Commit

Permalink
feat(connections): shrink the element sizes down
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Sep 5, 2023
1 parent 76b799b commit 0aa9779
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/pages/Connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,14 @@ export default () => {

return (
<div class="flex h-full flex-col gap-4 overflow-y-auto p-1">
<div class="tabs-boxed tabs">
<div class="tabs-boxed tabs gap-2">
<For each={tabs()}>
{(tab) => (
<button
class={twMerge(activeTab() === tab.type && 'tab-active', 'tab')}
class={twMerge(
activeTab() === tab.type && 'tab-active',
'tab tab-xs',
)}
onClick={() => setActiveTab(tab.type)}
>
{tab.name} ({tab.count})
Expand All @@ -363,28 +366,28 @@ export default () => {
</For>
</div>

<div class="flex w-full items-center gap-2">
<div class="flex w-full flex-wrap items-center gap-2">
<input
class="input input-primary flex-1"
class="input input-primary input-sm flex-1"
placeholder={t('search')}
onInput={(e) => setSearch(e.target.value)}
/>

<Button
class="btn-circle"
class="btn-circle btn-sm"
onClick={() => setPaused((paused) => !paused)}
>
{paused() ? <IconPlayerPause /> : <IconPlayerPlay />}
</Button>

<Button
class="btn-circle"
class="btn-circle btn-sm"
onClick={() => request.delete('connections')}
>
<IconCircleX />
</Button>

<label for="connection-modal" class="btn btn-circle">
<label for="connection-modal" class="btn btn-circle btn-sm">
<IconSettings />
</label>

Expand Down

0 comments on commit 0aa9779

Please sign in to comment.