Settings Button
This commit is contained in:
parent
aa7b4b2af7
commit
b50fa6f3ae
3 changed files with 23 additions and 4 deletions
|
@ -205,8 +205,6 @@ pub async fn fetch_posts(path: &str, fallback_title: String) -> Result<(Vec<Post
|
||||||
// Determine the type of media along with the media URL
|
// Determine the type of media along with the media URL
|
||||||
let media = media(&post["data"]).await;
|
let media = media(&post["data"]).await;
|
||||||
|
|
||||||
dbg!(post["data"]["id"].to_string());
|
|
||||||
|
|
||||||
posts.push(Post {
|
posts.push(Post {
|
||||||
id: val(post, "id"),
|
id: val(post, "id"),
|
||||||
title: if title.is_empty() { fallback_title.to_owned() } else { title },
|
title: if title.is_empty() { fallback_title.to_owned() } else { title },
|
||||||
|
|
|
@ -41,6 +41,12 @@ nav * { color: white; }
|
||||||
nav #reddit { color: var(--accent); }
|
nav #reddit { color: var(--accent); }
|
||||||
nav #version { opacity: 25%; }
|
nav #version { opacity: 25%; }
|
||||||
|
|
||||||
|
#settings_link {
|
||||||
|
font-size: 18px;
|
||||||
|
margin-left: 20px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -562,6 +568,20 @@ input[type="submit"]:hover { color: var(--accent); }
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#compact .post:first-of-type {
|
||||||
|
border-radius: 5px 5px 0 0;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
#compact .post:last-of-type {
|
||||||
|
border-radius: 0 0 5px 5px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
#compact .post.highlighted {
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
#compact .post:not(:last-of-type):not(.highlighted):not(.stickied) {
|
#compact .post:not(:last-of-type):not(.highlighted):not(.stickied) {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
@ -587,8 +607,8 @@ input[type="submit"]:hover { color: var(--accent); }
|
||||||
max-height: 75px;
|
max-height: 75px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#compact #footer {
|
#compact footer {
|
||||||
margin-top: 10px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#card .post_right {
|
#card .post_right {
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
<span id="lib">lib</span><span id="reddit">reddit.</span>
|
<span id="lib">lib</span><span id="reddit">reddit.</span>
|
||||||
</a>
|
</a>
|
||||||
<span id="version">v{{ env!("CARGO_PKG_VERSION") }}</span>
|
<span id="version">v{{ env!("CARGO_PKG_VERSION") }}</span>
|
||||||
|
<a id="settings_link" href="/settings">settings</a>
|
||||||
</p>
|
</p>
|
||||||
{% block search %}{% endblock %}
|
{% block search %}{% endblock %}
|
||||||
<a id="github" href="https://github.com/spikecodes/libreddit">GITHUB</a>
|
<a id="github" href="https://github.com/spikecodes/libreddit">GITHUB</a>
|
||||||
|
|
Loading…
Reference in a new issue