tangled
alpha
login
or
join now
ansxor.ca
/
dashsky
0
fork
atom
bluesky client without react native baggage written in sveltekit
0
fork
atom
overview
issues
pulls
pipelines
fixed the sticky header issue
ansxor.ca
1 week ago
d95c7810
1118ce34
+6
-5
2 changed files
expand all
collapse all
unified
split
src
lib
components
Post.svelte
routes
+layout.svelte
+4
-4
src/lib/components/Post.svelte
···
116
</div>
117
{/if}
118
{#if liked}
119
-
<button class="flex grow items-center gap-1 hover:cursor-pointer" onclick={unlikePost}>
120
<span class="text-4.5 icon-[icon-park-solid--like] h-4.5 w-4.5 text-red-500"></span>
121
-
{(likeCount ?? 0) + 1}
122
</button>
123
{:else}
124
-
<button class="flex grow items-center gap-1 hover:cursor-pointer" onclick={likePost}>
125
<span class="text-4.5 icon-[icon-park-outline--like] h-4.5 w-4.5"></span>
126
-
{likeCount}
127
</button>
128
{/if}
129
</div>
···
116
</div>
117
{/if}
118
{#if liked}
119
+
<button aria-label={`Unlike this post, {likeCount+1} likes`} aria-pressed={true} class="flex grow items-center gap-1 hover:cursor-pointer" onclick={unlikePost}>
120
<span class="text-4.5 icon-[icon-park-solid--like] h-4.5 w-4.5 text-red-500"></span>
121
+
<span aria-hidden={true}>{(likeCount ?? 0) + 1}</span>
122
</button>
123
{:else}
124
+
<button aria-label={`Like this post, {likeCount} likes`} aria-pressed={false} class="flex grow items-center gap-1 hover:cursor-pointer" onclick={likePost}>
125
<span class="text-4.5 icon-[icon-park-outline--like] h-4.5 w-4.5"></span>
126
+
<span aria-hidden={true}>{likeCount}</span>
127
</button>
128
{/if}
129
</div>
+2
-1
src/routes/+layout.svelte
···
151
height: 100%;
152
overflow-y: scroll;
153
display: flex;
154
-
place-content: center;
0
155
}
156
.main {
157
width: 602px;
···
151
height: 100%;
152
overflow-y: scroll;
153
display: flex;
154
+
justify-content: center;
155
+
align-items: flex-start;
156
}
157
.main {
158
width: 602px;