viewer improvements
updates to config thumbnail size increase
This commit is contained in:
@@ -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}"
|
||||
|
||||
@@ -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"}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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))]
|
||||
|
||||
Reference in New Issue
Block a user