forked from potsda.mn/mobilizon
fix(front): various UI improvements for group page
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
ec7ca4ddf1
commit
b0975672c1
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<router-link
|
||||
class="flex gap-1 w-full items-center p-2 border-b-stone-200 border-b"
|
||||
class="flex gap-1 w-full items-center p-2 border-b-stone-200 border-b bg-white dark:bg-transparent"
|
||||
dir="auto"
|
||||
:to="{
|
||||
name: RouteName.DISCUSSION,
|
||||
|
|
|
@ -8,7 +8,10 @@
|
|||
}"
|
||||
>
|
||||
<template #default>
|
||||
<div v-if="group?.resources?.elements?.length ?? 0 > 0" class="p-1">
|
||||
<div
|
||||
v-if="group?.resources?.elements?.length ?? 0 > 0"
|
||||
class="p-1 bg-white dark:bg-transparent"
|
||||
>
|
||||
<div
|
||||
v-for="resource in group?.resources?.elements ?? []"
|
||||
:key="resource.id"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="posts-wrapper">
|
||||
<div class="posts-wrapper grid gap-4">
|
||||
<post-list-item
|
||||
v-for="post in posts"
|
||||
:key="post.id"
|
||||
|
@ -22,8 +22,6 @@ withDefaults(
|
|||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.posts-wrapper {
|
||||
display: grid;
|
||||
grid-gap: 20px;
|
||||
grid-template: 1fr;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="resource-wrapper" dir="auto">
|
||||
<div class="resource-wrapper bg-white dark:bg-transparent" dir="auto">
|
||||
<router-link
|
||||
:to="{
|
||||
name: RouteName.RESOURCE_FOLDER,
|
||||
|
|
|
@ -1,7 +1,12 @@
|
|||
<template>
|
||||
<div class="flex flex-1 items-center w-full" dir="auto">
|
||||
<div
|
||||
class="flex flex-1 items-center w-full bg-white dark:bg-transparent"
|
||||
dir="auto"
|
||||
>
|
||||
<a :href="resource.resourceUrl" target="_blank">
|
||||
<div class="preview text-mbz-purple dark:text-mbz-purple-300">
|
||||
<div
|
||||
class="min-w-fit relative flex items-center justify-center text-mbz-purple dark:text-mbz-purple-300"
|
||||
>
|
||||
<div
|
||||
v-if="
|
||||
resource.type &&
|
||||
|
@ -14,10 +19,12 @@
|
|||
customSize="48"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="preview-image"
|
||||
<img
|
||||
v-else-if="resource.metadata && resource.metadata.imageRemoteUrl"
|
||||
:style="`background-image: url(${resource.metadata.imageRemoteUrl})`"
|
||||
:src="resource.metadata.imageRemoteUrl"
|
||||
alt=""
|
||||
height="48"
|
||||
width="48"
|
||||
/>
|
||||
<div class="preview-type" v-else>
|
||||
<Link :size="48" />
|
||||
|
@ -99,25 +106,6 @@ a {
|
|||
overflow: hidden;
|
||||
flex: 1;
|
||||
|
||||
.preview {
|
||||
flex: 0 0 50px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.preview-image {
|
||||
border-radius: 4px 0 0 4px;
|
||||
display: block;
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
background-size: cover;
|
||||
background-position: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.body {
|
||||
img.favicon {
|
||||
display: inline-block;
|
||||
|
|
Loading…
Reference in a new issue