Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Oct 18, 2023
1 parent a8af1fe commit 1cf1b5b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion web/src/app.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Start reset css */
/* resset.dev • v5.0.2 */
/* reset.dev • v5.0.2 */

/* # =================================================================
# Global selectors
Expand Down
2 changes: 1 addition & 1 deletion web/src/lib/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class Api {
}

async fetchEventItemById(id: string): Promise<EventItem | undefined> {
// If exsits in store
// If exists in store
const $events = get(timelineEvents);
const storedEvent = $events.find((x) => x.event.id === id);
if (storedEvent !== undefined) {
Expand Down
12 changes: 6 additions & 6 deletions web/src/routes/TimelineView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
export let showLoading = true;
export let createdAtFormat: 'auto' | 'time' = 'auto';
export let full = false;
export let transitionable = true;
export let transitional = true;
let loading = false;
let innerHeight: number;
Expand Down Expand Up @@ -78,7 +78,7 @@
target = target.parentElement;
}
}
if (transitionable) {
if (transitional) {
if (nostrEvent.kind === 42 && $channelIdStore === undefined) {
const channelId = findChannelId(nostrEvent.tags);
if (channelId !== undefined) {
Expand All @@ -101,7 +101,7 @@
{#each items as item (item.event.id)}
{#if !isMuteEvent(item.event)}
<li
class={transitionable ? 'transitionable-post' : ''}
class={transitional ? 'transitional-post' : ''}
class:related={$author?.isNotified(item.event)}
on:mouseup={(e) => viewDetail(e, item.event)}
>
Expand Down Expand Up @@ -139,11 +139,11 @@
text-overflow: ellipsis;
}
.transitionable-post {
.transitional-post {
cursor: pointer;
}
.transitionable-post:hover {
.transitional-post:hover {
background: var(--accent-surface-low);
}
Expand All @@ -155,7 +155,7 @@
cursor: pointer;
}
:global(.transitionable-post blockquote:hover) {
:global(.transitional-post blockquote:hover) {
background: var(--accent-surface-high);
}
Expand Down
4 changes: 2 additions & 2 deletions web/src/routes/[slug=note]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
customEmojiShortcode.set(url, shortcode)
}
} catch (error) {
console.error('[custum emoji invalid]', item);
console.error('[custom emoji invalid]', item);
}
}
}
Expand Down Expand Up @@ -200,7 +200,7 @@
load={async () => console.debug()}
showLoading={false}
full={true}
transitionable={false}
transitional={false}
/>
</div>

Expand Down

0 comments on commit 1cf1b5b

Please sign in to comment.