prep: replace $$props.class with props

This commit is contained in:
Xylight committed 2024-10-23 19:55:20 -07:00
1 parent 3ca72662ca
commit 0718c8e0c6
69 files changed
+383 -214

No files matched your search

@@ -15,6 +15,8 @@
$: isSelected = isSelectedFilter($page.url.pathname)
$: isPanel = adaptive ? $dockProps.noGap : false
let clazz: string = ''
export { clazz as class }
</script>
<Button
@@ -26,7 +28,7 @@
? '@3xl:h-8 @3xl:px-3 @3xl:rounded-[10px] @3xl:w-auto'
: ''} {isSelected
? 'bg-slate-200 dark:bg-zinc-900 text-primary-900 dark:!text-primary-100'
: ''} {$$props.class ?? ''}"
: ''} {clazz}"
size="custom"
{href}
rounding="pill"
+5 -2
View File
@@ -40,15 +40,18 @@
import { dockProps } from '../layout/Shell.svelte'
let promptOpen: boolean = false
export let style: string = ''
let clazz: string = ''
export { clazz as class }
</script>
<CommandsWrapper bind:open={promptOpen} />
<nav
class="flex flex-row gap-2 items-center w-full mx-auto z-50 box-border p-0.5
duration-150 @container
{$$props.class}
{clazz}
"
style={$$props.style}
{style}
>
<NavButton
on:contextmenu={(e) => {
+3 -1
View File
@@ -39,6 +39,8 @@
import UserLink from '$lib/components/lemmy/user/UserLink.svelte'
let showInstance = false
export let buttonClass: string = ''
</script>
{#if showInstance}
@@ -60,7 +62,7 @@
<button
class="w-10 h-10 rounded-full border-2 border-slate-200 dark:border-zinc-700
transition-all bg-slate-50 dark:bg-zinc-900 relative
hover:border-primary-900 hover:dark:border-primary-100 active:scale-95 {$$props.buttonClass}"
hover:border-primary-900 hover:dark:border-primary-100 active:scale-95 {buttonClass}"
title={$t('profile.profile')}
slot="target"
>
@@ -10,6 +10,8 @@
import type { Action } from './actions'
export let action: Action
let clazz: string = ''
export { clazz as class }
</script>
<Button
@@ -18,7 +20,7 @@
alignment="left"
color="tertiary"
size="lg"
class="focus:bg-slate-200 focus:dark:bg-zinc-800 block w-full {$$props.class}"
class="focus:bg-slate-200 focus:dark:bg-zinc-800 block w-full {clazz}"
data-sveltekit-preload-code="viewport"
data-sveltekit-preload-data="tap"
>