mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
fix(news): 渲染页面样式美化
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
}
|
||||
|
||||
.mys-post-img {
|
||||
max-width: 100%;
|
||||
width: 800px;
|
||||
height: auto;
|
||||
border-radius: 10px;
|
||||
@@ -58,7 +59,7 @@
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
background: #e1e1e1;
|
||||
background: #faf7e8;
|
||||
}
|
||||
|
||||
.mys-post-link-card-cover {
|
||||
@@ -81,13 +82,15 @@
|
||||
|
||||
.mys-post-link-card-title {
|
||||
font-size: 20px;
|
||||
color: black;
|
||||
font-family: Genshin, serif;
|
||||
color: #546d8b;
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
.mys-post-link-card-price {
|
||||
font-size: 20px;
|
||||
color: #ff667f;
|
||||
font-weight: bold;
|
||||
color: #ff6d6d;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
||||
@@ -381,7 +381,7 @@ function LinkCardParser(data: PostStructuredContent): HTMLDivElement {
|
||||
// 创建 button
|
||||
const button = document.createElement("a");
|
||||
button.classList.add("mys-post-link-card-btn");
|
||||
button.innerHTML = data.insert.link_card.button_text || "详情" + " >";
|
||||
button.innerHTML = (data.insert.link_card.button_text || "详情") + " >";
|
||||
const link_url = data.insert.link_card.origin_url;
|
||||
if (IsMysPost(link_url)) {
|
||||
button.href = "/post_detail/" + link_url.split("/").pop();
|
||||
|
||||
Reference in New Issue
Block a user