diff --git a/web/index.html b/web/index.html
index ca6c0c40..ac604afd 100644
--- a/web/index.html
+++ b/web/index.html
@@ -20,6 +20,15 @@
max-height: 2em;
border-radius: 50%;
}
+ div.boxscroll {
+ max-height: calc(100vh - 8rem);
+ overflow-y: scroll;
+ }
+ @media screen and (max-width: 786px) {
+ div.boxscroll {
+ max-height: 100%;
+ }
+ }
table.align {
line-height: 1rem;
}
diff --git a/web/src/lib.rs b/web/src/lib.rs
index 60e76de5..12297be9 100644
--- a/web/src/lib.rs
+++ b/web/src/lib.rs
@@ -3,9 +3,10 @@ use std::sync::Arc;
use apb::{target::Addressed, Activity, ActivityMut, Actor, Base, Collection, Object, ObjectMut};
use dashmap::DashMap;
use leptos::{leptos_dom::logging::console_log, *};
-use leptos_router::use_params_map;
+use leptos_router::*;
-pub const BASE_URL: &str = "https://feditest.alemi.dev";
+pub const URL_BASE: &str = "https://feditest.alemi.dev";
+pub const URL_PREFIX: &str = "/web";
#[derive(Debug, serde::Serialize)]
struct LoginForm {
@@ -23,7 +24,7 @@ pub fn LoginBox(
view! {
- "Hello "
test
+ "Hello "
test
@@ -38,7 +39,7 @@ pub fn LoginBox(
let password = password_ref.get().map(|x| x.value()).unwrap_or("".into());
spawn_local(async move {
let auth = reqwest::Client::new()
- .post(format!("{BASE_URL}/auth"))
+ .post(format!("{URL_BASE}/auth"))
.json(&LoginForm { email, password })
.send()
.await.unwrap()
@@ -66,7 +67,7 @@ pub fn PostBox(token: Signal
@@ -143,7 +145,7 @@ pub fn Actor() -> impl IntoView {
let params = use_params_map();
let actor = create_local_resource(move || params.get().get("id").cloned().unwrap_or_default(), |uid| {
async move {
- reqwest::get(format!("{BASE_URL}/users/{uid}"))
+ reqwest::get(format!("{URL_BASE}/users/{uid}"))
.await
.unwrap()
.json::
()
@@ -228,7 +230,7 @@ struct OmgReqwestErrorIsNotClonable(String);
pub fn Timeline(
token: Signal