mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	upd: rename SkNoteSub property
This commit is contained in:
		
							parent
							
								
									3107345d3c
								
							
						
					
					
						commit
						592f77371f
					
				
					 2 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
					@ -178,7 +178,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
				
			||||||
			<div v-if="!repliesLoaded" style="padding: 16px">
 | 
								<div v-if="!repliesLoaded" style="padding: 16px">
 | 
				
			||||||
				<MkButton style="margin: 0 auto;" primary rounded @click="loadReplies">{{ i18n.ts.loadReplies }}</MkButton>
 | 
									<MkButton style="margin: 0 auto;" primary rounded @click="loadReplies">{{ i18n.ts.loadReplies }}</MkButton>
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
			<SkNoteSub v-for="note in replies" :key="note.id" :note="note" :class="$style.reply" :detail="true" :expandAllCws="props.expandAllCws" :onDeleteCallback="removeReply" :reply="true"/>
 | 
								<SkNoteSub v-for="note in replies" :key="note.id" :note="note" :class="$style.reply" :detail="true" :expandAllCws="props.expandAllCws" :onDeleteCallback="removeReply" :isReply="true"/>
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
		<div v-else-if="tab === 'renotes'" :class="$style.tab_renotes">
 | 
							<div v-else-if="tab === 'renotes'" :class="$style.tab_renotes">
 | 
				
			||||||
			<MkPagination :pagination="renotesPagination" :disableAutoLoad="true">
 | 
								<MkPagination :pagination="renotesPagination" :disableAutoLoad="true">
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,7 +4,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
				
			||||||
-->
 | 
					-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<template>
 | 
					<template>
 | 
				
			||||||
<div v-show="!isDeleted" v-if="!muted" ref="el" :class="[$style.root, { [$style.children]: depth > 1, [$style.replyRoot]: props.reply, [$style.detailed]: props.detailed }]">
 | 
					<div v-show="!isDeleted" v-if="!muted" ref="el" :class="[$style.root, { [$style.children]: depth > 1, [$style.isReply]: props.isReply, [$style.detailed]: props.detailed }]">
 | 
				
			||||||
	<div v-if="!hideLine" :class="$style.line"></div>
 | 
						<div v-if="!hideLine" :class="$style.line"></div>
 | 
				
			||||||
	<div :class="$style.main">
 | 
						<div :class="$style.main">
 | 
				
			||||||
		<div v-if="note.channel" :class="$style.colorBar" :style="{ background: note.channel.color }"></div>
 | 
							<div v-if="note.channel" :class="$style.colorBar" :style="{ background: note.channel.color }"></div>
 | 
				
			||||||
| 
						 | 
					@ -73,7 +73,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
	<template v-if="depth < numberOfReplies">
 | 
						<template v-if="depth < numberOfReplies">
 | 
				
			||||||
		<SkNoteSub v-for="reply in replies" :key="reply.id" :note="reply" :class="[$style.reply, { [$style.single]: replies.length === 1 }]" :detail="true" :depth="depth + 1" :expandAllCws="props.expandAllCws" :onDeleteCallback="removeReply" :reply="props.reply"/>
 | 
							<SkNoteSub v-for="reply in replies" :key="reply.id" :note="reply" :class="[$style.reply, { [$style.single]: replies.length === 1 }]" :detail="true" :depth="depth + 1" :expandAllCws="props.expandAllCws" :onDeleteCallback="removeReply" :isReply="props.isReply"/>
 | 
				
			||||||
	</template>
 | 
						</template>
 | 
				
			||||||
	<div v-else :class="$style.more">
 | 
						<div v-else :class="$style.more">
 | 
				
			||||||
		<MkA class="_link" :to="notePage(note)">{{ i18n.ts.continueThread }} <i class="ph-caret-double-right ph-bold ph-lg"></i></MkA>
 | 
							<MkA class="_link" :to="notePage(note)">{{ i18n.ts.continueThread }} <i class="ph-caret-double-right ph-bold ph-lg"></i></MkA>
 | 
				
			||||||
| 
						 | 
					@ -126,11 +126,11 @@ const props = withDefaults(defineProps<{
 | 
				
			||||||
	// how many notes are in between this one and the note being viewed in detail
 | 
						// how many notes are in between this one and the note being viewed in detail
 | 
				
			||||||
	depth?: number;
 | 
						depth?: number;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	reply?: boolean;
 | 
						isReply?: boolean;
 | 
				
			||||||
	detailed?: boolean;
 | 
						detailed?: boolean;
 | 
				
			||||||
}>(), {
 | 
					}>(), {
 | 
				
			||||||
	depth: 1,
 | 
						depth: 1,
 | 
				
			||||||
	reply: false,
 | 
						isReply: false,
 | 
				
			||||||
	detailed: false,
 | 
						detailed: false,
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -447,7 +447,7 @@ if (props.detail) {
 | 
				
			||||||
		padding: 10px 0 0 8px;
 | 
							padding: 10px 0 0 8px;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	&.replyRoot {
 | 
						&.isReply {
 | 
				
			||||||
		/* @link https://utopia.fyi/clamp/calculator?a=450,580,26—36 */
 | 
							/* @link https://utopia.fyi/clamp/calculator?a=450,580,26—36 */
 | 
				
			||||||
		--avatar: clamp(26px, -8.6154px + 7.6923cqi, 36px);
 | 
							--avatar: clamp(26px, -8.6154px + 7.6923cqi, 36px);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue