Skip to content

Commit

Permalink
Merge pull request #737 from mattn/fix-typos
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
SnowCait authored Oct 18, 2023
2 parents d63c106 + b09e08e commit 11e3d5e
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 canTransition = true;
let loading = false;
let innerHeight: number;
Expand Down Expand Up @@ -78,7 +78,7 @@
target = target.parentElement;
}
}
if (transitionable) {
if (canTransition) {
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={canTransition ? 'canTransition-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 {
.canTransition-post {
cursor: pointer;
}
.transitionable-post:hover {
.canTransition-post:hover {
background: var(--accent-surface-low);
}
Expand All @@ -155,7 +155,7 @@
cursor: pointer;
}
:global(.transitionable-post blockquote:hover) {
:global(.canTransition-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 @@ -59,7 +59,7 @@
customEmojiShortcode.set(url, shortcode)
}
} catch (error) {
console.error('[custum emoji invalid]', item);
console.error('[custom emoji invalid]', item);
}
}
}
Expand Down Expand Up @@ -237,7 +237,7 @@
load={async () => console.debug()}
showLoading={false}
full={true}
transitionable={false}
canTransition={false}
/>
</div>

Expand Down

1 comment on commit 11e3d5e

@vercel
Copy link

@vercel vercel bot commented on 11e3d5e Oct 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nostter – ./

nostter.vercel.app
nostter-snowcait.vercel.app
nostter-git-main-snowcait.vercel.app

Please sign in to comment.