restart: always
lemmy:
- image: dessalines/lemmy:v0.7.43
+ image: dessalines/lemmy:v0.7.45
ports:
- "127.0.0.1:8536:8536"
restart: always
#!/bin/sh
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker tag dessalines/lemmy:travis \
- dessalines/lemmy:v0.7.43
-docker push dessalines/lemmy:v0.7.43
+ dessalines/lemmy:v0.7.45
+docker push dessalines/lemmy:v0.7.45
-pub const VERSION: &str = "v0.7.43";
+pub const VERSION: &str = "v0.7.45";
margin-top: -10px;
}
+.custom-select {
+ -moz-appearance: none;
+}
+
.md-div p {
overflow: hidden;
text-overflow: ellipsis;
</>
) : (
<ul class="navbar-nav my-2">
- <li className="nav-item">
+ <li className="ml-2 nav-item">
<Link
class="btn btn-success"
to="/login"
</li>
{(showVotes || this.state.upvotes !== this.state.score) && (
<>
- <li className="list-inline-item">•</li>
<span
- class="unselectable pointer mr-2"
+ class="unselectable pointer ml-3"
data-tippy-content={this.pointsTippy}
>
<li className="list-inline-item">
}`}
onClick={linkEvent(this, this.handlePostLike)}
>
- <svg class="small icon icon-inline mr-1">
- <use xlinkHref="#icon-arrow-up"></use>
+ <svg class="small icon icon-inline mx-1">
+ <use xlinkHref="#icon-arrow-up1"></use>
</svg>
{this.state.upvotes}
</a>
}`}
onClick={linkEvent(this, this.handlePostDisLike)}
>
- <svg class="small icon icon-inline mr-1">
- <use xlinkHref="#icon-arrow-down"></use>
+ <svg class="small icon icon-inline mx-1">
+ <use xlinkHref="#icon-arrow-down1"></use>
</svg>
{this.state.downvotes}
</a>
return `hsla(${Math.random() * 360}, 100%, 50%, 1)`;
}
-export function previewLines(text: string, lines: number = 3): string {
- // Use lines * 2 because markdown requires 2 lines
+export function previewLines(
+ text: string,
+ maxChars: number = 300,
+ maxLines: number = 1
+): string {
return (
text
+ .slice(0, maxChars)
.split('\n')
- .slice(0, lines * 2)
+ // Use lines * 2 because markdown requires 2 lines
+ .slice(0, maxLines * 2)
.join('\n') + '...'
);
}