viewer improvements

updates to config
thumbnail size increase
This commit is contained in:
2025-05-27 21:58:30 -04:00
parent c78a65161a
commit ffe1e5ce3a
9 changed files with 67 additions and 24 deletions

View File

@@ -15,16 +15,18 @@ pub fn MediaItem(props: MediaItemProps) -> Element {
let src = format!("{HOST}/m/thumb/{id}");
rsx! {
div{
a{
class: "mediaItem",
href: "{HOST}/m/{id}",
target: "_blank",
img{ src: src }
div {
span {
class: "info",
span{
class: "name",
"{filename}"
},
div{
span{
class: "details",
span{
"{mtype}"

View File

@@ -1,6 +1,6 @@
use dioxus::prelude::*;
use crate::{contexts::AuthContext, Route};
use crate::{Route, contexts::AuthContext};
const NAV_CSS: Asset = asset!("/assets/style/nav.scss");
const NAV_ICON: Asset = asset!("/assets/favicon.ico");
@@ -32,8 +32,7 @@ pub fn MainNaviagation() -> Element {
pub fn Branding() -> Element {
rsx! {
div { class: "branding",
"Aoba"
img {src: NAV_ICON}
img {src: NAV_ICON, alt: "Aoba"}
}
}
}

View File

@@ -11,9 +11,9 @@ use dioxus::prelude::*;
use route::Route;
#[cfg(debug_assertions)]
pub const HOST: &'static str = "http://localhost:8080";
pub const HOST: &'static str = "http://localhost:8081";
#[cfg(debug_assertions)]
pub const RPC_HOST: &'static str = "http://localhost:8080";
pub const RPC_HOST: &'static str = "http://localhost:8081";
#[cfg(not(debug_assertions))]
pub const RPC_HOST: &'static str = "https://grpc.aoba.app:8443";
#[cfg(not(debug_assertions))]