Skip to content

Commit

Permalink
Remove more rounded borders
Browse files Browse the repository at this point in the history
  • Loading branch information
laurakwhit committed Dec 9, 2024
1 parent 844b19a commit f1babbf
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@
<MenuButton
class="{noBorderRight ? '!border-r-0' : ''} {noBorderLeft
? '!border-l-0'
: ''} whitespace-nowrap {isNullFilter
? 'rounded-l-none'
: 'rounded-none'}"
: ''} whitespace-nowrap"
id="conditional-menu-button"
controls="conditional-menu"
{disabled}
Expand Down
4 changes: 0 additions & 4 deletions src/lib/components/search-attribute-filter/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,4 @@
.filter {
@apply grow;
}
:global(.attribute-selected) {
@apply rounded-r-none;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
disabled={$activeQueryIndex !== null}
count={$filter.attribute ? 0 : filters.length}
on:click={() => (searchAttributeValue = '')}
class="text-nowrap {!!$filter.attribute && 'attribute-selected'}"
class="text-nowrap"
>
<svelte:fragment slot="leading">
{#if !$filter.attribute}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/worker-compatibility.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
</Table>
<h2 class="flex items-center gap-2" data-testid="workers">
{translate('workers.workers')}
<Badge type="count" class="rounded-sm">{workers?.pollers?.length || 0}</Badge>
<Badge type="count">{workers?.pollers?.length || 0}</Badge>
</h2>
<Table class="mb-6 w-full min-w-[600px] table-fixed">
<caption class="sr-only" slot="caption"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/worker-table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<h2 class="flex items-center gap-2" data-testid="workers">
{translate('workers.workers')}
<Badge type="count" class="rounded-sm">{workers?.pollers?.length || 0}</Badge>
<Badge type="count">{workers?.pollers?.length || 0}</Badge>
</h2>
<Table class="mb-6 w-full min-w-[600px] table-fixed">
<caption class="sr-only" slot="caption"
Expand Down
10 changes: 2 additions & 8 deletions src/lib/components/workflow/dropdown-filter/conditional.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,12 @@

<div class="mt-2 transition-all hover:cursor-pointer">
<button class="flex items-center" on:click={() => (conditional = '=')}>
<div
class="ml-4 mr-2 rounded-sm p-1 text-primary"
class:active={conditional === '='}
>
<div class="ml-4 mr-2 p-1 text-primary" class:active={conditional === '='}>
Is
</div>
</button>
<button class="flex items-center" on:click={() => (conditional = '!=')}>
<div
class="ml-4 mr-2 rounded-sm p-1 text-primary"
class:active={conditional === '!='}
>
<div class="ml-4 mr-2 p-1 text-primary" class:active={conditional === '!='}>
Is Not
</div>
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/workflow/input-and-results.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<h3 class="mb-2 flex items-center gap-2">
{title}
{#if showParsedContentCount}
<Badge type="count" class="rounded-sm">{payloads.length}</Badge>
<Badge type="count">{payloads.length}</Badge>
{/if}
</h3>
{#if content}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/workflow/workflow-counts.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
/>
</button>
{:else}
<Skeleton class="h-6 w-24 rounded" />
<Skeleton class="h-6 w-24 rounded-sm" />
{/if}
{/each}
</div>
2 changes: 1 addition & 1 deletion src/lib/holocene/alert.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

<style lang="postcss">
.alert {
@apply items-start gap-2 break-words rounded-lg border p-5 text-sm text-primary;
@apply items-start gap-2 break-words border p-5 text-sm text-primary;
}
.alert.success {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/holocene/chip.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<style lang="postcss">
.chip {
@apply surface-subtle flex h-8 w-fit min-w-fit flex-row items-center justify-between gap-1 whitespace-nowrap break-all rounded-md p-1 text-sm;
@apply surface-subtle flex h-8 w-fit min-w-fit flex-row items-center justify-between gap-1 whitespace-nowrap break-all rounded-sm p-1 text-sm;
:global(.icon-button) {
@apply ml-1 h-auto w-fit;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/holocene/compatibility-badge.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{#if defaultVersion && buildId}
<span
class={merge(
'flex items-center gap-1 rounded border border-subtle px-1 text-sm text-primary',
'flex items-center gap-1 rounded-sm border border-subtle px-1 text-sm text-primary',
active && 'border-green-200 bg-green-200 text-black',
)}
>
Expand All @@ -22,7 +22,7 @@
</span>
{:else if buildId}
<span
class="flex items-center gap-1 rounded border border-subtle px-1 text-sm text-primary"
class="flex items-center gap-1 rounded-sm border border-subtle px-1 text-sm text-primary"
>
<Icon name="merge" />{buildId}
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/holocene/monaco/markdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
on:load={resizeIframe}
title="output"
src="/render?content={encodeURIComponent(templatedContent)}&theme={theme}"
class="w-full rounded-md"
class="w-full"
/>
{/key}
</section>
2 changes: 1 addition & 1 deletion src/lib/holocene/navigation/navigation-badge.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
href={link}
{rel}
{target}
class="relative flex cursor-pointer items-center rounded-lg border border-white/10 bg-white/5 text-white hover:bg-white hover:text-black group-data-[nav=closed]:p-1 group-data-[nav=open]:px-2.5 group-data-[nav=open]:py-2"
class="relative flex cursor-pointer items-center border border-white/10 bg-white/5 text-white hover:bg-white hover:text-black group-data-[nav=closed]:p-1 group-data-[nav=open]:px-2.5 group-data-[nav=open]:py-2"
>
<div
class="flex h-6 w-6 items-center whitespace-nowrap after:absolute after:left-[calc(100%_+_1.5rem)] after:top-0 after:hidden after:h-8 after:items-center after:rounded-md after:bg-slate-800 after:p-1 after:px-2 after:text-xs after:text-white after:content-[attr(data-tooltip)] group-data-[nav=open]:hidden group-data-[nav=open]:justify-start group-data-[nav=closed]:justify-center group-data-[nav=closed]:hover:after:flex"
Expand Down

0 comments on commit f1babbf

Please sign in to comment.