From 4c42276debf67e0b76dd93bcc60f04b7bcf5e2ff Mon Sep 17 00:00:00 2001 From: James Collins Date: Wed, 26 Apr 2023 12:00:26 +1000 Subject: [PATCH] bug fixes --- resources/js/views/Article.vue | 28 ++++++++++++++++---- resources/js/views/dashboard/ArticleEdit.vue | 16 ++++++----- 2 files changed, 32 insertions(+), 12 deletions(-) diff --git a/resources/js/views/Article.vue b/resources/js/views/Article.vue index 24b2263..65ecce5 100644 --- a/resources/js/views/Article.vue +++ b/resources/js/views/Article.vue @@ -3,9 +3,24 @@ class="thumbnail" :style="{ backgroundImage: `url('${backgroundImageUrl}')` }"> -

{{ article.title }}

-
By {{ article.user.username }}
-
{{ formattedDate(article.publish_at) }}
+

+ {{ article.title }} +

+ +
+
By {{ article.user.username }}
+
{{ formattedDate(article.publish_at) }}
+
+ +
@@ -21,6 +36,9 @@ import { Article, ArticleCollection, User } from "../helpers/api.types"; import { SMDate } from "../helpers/datetime"; import { useApplicationStore } from "../store/ApplicationStore"; import { mediaGetVariantUrl } from "../helpers/media"; +import SMToolbar from "../components/SMToolbar.vue"; +import SMButton from "../components/SMButton.vue"; +import { userHasPermission } from "../helpers/utils"; const applicationStore = useApplicationStore(); @@ -129,12 +147,12 @@ handleLoad(); } .author { - margin-top: 16px; + // margin-top: 16px; font-weight: 700; } .date { - margin-top: 16px; + margin-top: 8px; font-weight: 700; filter: brightness(175%); } diff --git a/resources/js/views/dashboard/ArticleEdit.vue b/resources/js/views/dashboard/ArticleEdit.vue index 76bef13..eebdd3e 100644 --- a/resources/js/views/dashboard/ArticleEdit.vue +++ b/resources/js/views/dashboard/ArticleEdit.vue @@ -1,9 +1,10 @@ @@ -80,14 +81,15 @@ import { Form, FormControl } from "../../helpers/form"; import { And, DateTime, Min, Required } from "../../helpers/validate"; import { useToastStore } from "../../store/ToastStore"; import { useUserStore } from "../../store/UserStore"; +import SMMastHead from "../../components/SMMastHead.vue"; const route = useRoute(); const router = useRouter(); const userStore = useUserStore(); -const page_title = route.params.id ? "Edit Article" : "Create New Article"; let pageError = ref(200); const authors = ref({}); const attachments = ref([]); +const pageHeading = route.params.id ? "Edit Article" : "Create Article"; let form = reactive( Form({