-
Notifications
You must be signed in to change notification settings - Fork 119
rm postcss #2901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rm postcss #2901
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,12 @@ | ||
| <script lang="ts"> | ||
| import type { HTMLAttributes } from 'svelte/elements'; | ||
| import type { ClassValue, HTMLAttributes } from 'svelte/elements'; | ||
| import { clsx } from 'clsx'; | ||
| import { twMerge as twMergeOriginal } from 'tailwind-merge'; | ||
| function merge(...args: ClassValue[]) { | ||
| return twMergeOriginal(clsx(...args)); | ||
| } | ||
| import SkeletonTable from '$lib/holocene/skeleton/table.svelte'; | ||
| import Table from '$lib/holocene/table/table.svelte'; | ||
|
|
@@ -12,6 +19,7 @@ | |
| updating?: boolean; | ||
| maxHeight?: string; | ||
| fixed?: boolean; | ||
| class?: ClassValue; | ||
|
||
| } | ||
| export let visibleItems: Item[]; | ||
|
|
@@ -20,15 +28,21 @@ | |
| export let maxHeight = ''; | ||
| export let fixed = false; | ||
| let className: ClassValue = ''; | ||
| export { className as class }; | ||
| let tableContainer: HTMLDivElement; | ||
| $: tableOffset = tableContainer?.offsetTop | ||
| ? tableContainer?.offsetTop + 32 | ||
| ? tableContainer.offsetTop + 32 | ||
| : 0; | ||
| </script> | ||
|
|
||
| <div | ||
| class="paginated-table-wrapper" | ||
| class={merge( | ||
| 'surface-primary min-h-[154px] grow overflow-auto border border-subtle', | ||
| className, | ||
| )} | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just use the regular merge with the different type on classes and we gucci |
||
| bind:this={tableContainer} | ||
| style="max-height: {maxHeight || `calc(100vh - ${tableOffset}px)`}" | ||
| > | ||
|
|
@@ -45,7 +59,9 @@ | |
| <slot /> | ||
| </Table> | ||
| {#if visibleItems.length} | ||
| <div class="paginated-table-controls"> | ||
| <div | ||
| class="surface-primary sticky bottom-0 left-0 flex w-full grow items-center justify-between gap-2 border-t border-subtle px-4 py-2" | ||
| > | ||
| <slot name="actions-start" /> | ||
| <slot name="actions-center" /> | ||
| <slot name="actions-end" /> | ||
|
|
@@ -55,13 +71,3 @@ | |
| {/if} | ||
| {/if} | ||
| </div> | ||
|
|
||
| <style lang="postcss"> | ||
| .paginated-table-wrapper { | ||
| @apply surface-primary min-h-[154px] grow overflow-auto border border-subtle; | ||
| } | ||
| .paginated-table-controls { | ||
| @apply surface-primary sticky bottom-0 left-0 flex w-full grow items-center justify-between gap-2 border-t border-subtle px-4 py-2; | ||
| } | ||
| </style> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably don't need these codemirror addons?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like they just got alphabetized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this happened when I ran install for some reason. But Those aren't new additions.