prep: replace $$props.class with props
This commit is contained in:
1 parent
3ca72662ca
commit
0718c8e0c6
69 files changed
+383
-214
No files matched your search
@@ -46,6 +46,10 @@
|
||||
|
||||
let editingLoad = false
|
||||
|
||||
export let contentClass: string = ''
|
||||
let clazz: string = ''
|
||||
export { clazz as class }
|
||||
|
||||
async function save() {
|
||||
if (!$profile?.jwt || newComment.length <= 0) return
|
||||
|
||||
@@ -111,7 +115,7 @@
|
||||
<li
|
||||
class="py-3 relative {node.comment_view.comment.distinguished
|
||||
? ' text-primary-900 dark:text-primary-100'
|
||||
: ''} {highlight} {$$props.class}"
|
||||
: ''} {highlight} {clazz}"
|
||||
id={node.comment_view.comment.id.toString()}
|
||||
>
|
||||
{#if meta}
|
||||
@@ -194,7 +198,7 @@
|
||||
{/if}
|
||||
{#if open}
|
||||
<div
|
||||
class="relative {$$props.contentClass}"
|
||||
class="relative {contentClass}"
|
||||
transition:slide={{ duration: 400, easing: expoOut }}
|
||||
>
|
||||
<div
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
export let community = false
|
||||
|
||||
export let meta: boolean = true
|
||||
let clazz: string = ''
|
||||
export { clazz as class }
|
||||
</script>
|
||||
|
||||
<Material
|
||||
@@ -23,7 +25,7 @@
|
||||
? 'py-5'
|
||||
: view == 'compact'
|
||||
? 'py-4'
|
||||
: 'py-5'} {$$props.class}"
|
||||
: 'py-5'} {clazz}"
|
||||
color="distinct"
|
||||
padding="none"
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user