fix(web): better view for lemmy objects
This commit is contained in:
parent
227e9c625b
commit
b9f512a988
2 changed files with 9 additions and 1 deletions
|
@ -112,6 +112,10 @@
|
|||
position: sticky;
|
||||
background-color: var(--background);
|
||||
}
|
||||
div.border {
|
||||
padding: 1em;
|
||||
border: 1px dashed var(--accent);
|
||||
}
|
||||
@media screen and (max-width: 786px) {
|
||||
div.sticky {
|
||||
top: 1.75rem;
|
||||
|
|
|
@ -115,7 +115,11 @@ pub fn Object(object: crate::Object) -> impl IntoView {
|
|||
};
|
||||
let post = match object.object_type() {
|
||||
Some(apb::ObjectType::Document(apb::DocumentType::Page)) => view! {
|
||||
<table class="w-100 pa-1">{post_inner}</table>
|
||||
<div class="border ml-1 mr-1 mt-1">
|
||||
<b>{object.name().unwrap_or_default().to_string()}</b>
|
||||
<hr />
|
||||
{post_inner}
|
||||
</div>
|
||||
}.into_view(), // lemmy
|
||||
Some(apb::ObjectType::Document(apb::DocumentType::Video)) => post_inner.into_view(), // peertube?
|
||||
Some(apb::ObjectType::Note) => view! {
|
||||
|
|
Loading…
Reference in a new issue