💄 Add rendered block border

This commit is contained in:
zhengyi 2023-12-25 15:17:56 +08:00
parent e8460a101b
commit 634a65918c
4 changed files with 8 additions and 4 deletions

View File

@ -1 +1 @@
export const RENDER_CLASS = "halo-render"
export const RENDER_CLASS = "halo-render halo-render-wrapper"

View File

@ -1,7 +1,6 @@
@import "constant";
.git {
margin: 5px;
border: 1px solid #ececec;
padding: 10px;
border-radius: @border-radius;

View File

@ -13,6 +13,10 @@
border-radius: @border-radius;
}
.halo-render-wrapper {
margin: 20px 15px;
}
@font-face {
font-family: 'iconfont';
src: url('../fonts/iconfont.woff2?t=1703484934750') format('woff2'),

View File

@ -1,6 +1,7 @@
import {Provider} from "./provider";
import {fillContent} from "../utils/git-processor/git-processor";
import "../less/git.less"
import {RENDER_CLASS} from "../constant";
export class GitProvider implements Provider {
check(type: string): boolean {
@ -28,9 +29,9 @@ export class GitProvider implements Provider {
repo: repo
})
if (res) {
return `<div class='git git-${owner}-${repo}'>${res}</div>`
return `<div class='${RENDER_CLASS} git git-${owner}-${repo}'>${res}</div>`
}
return `<div class='git git-${owner}-${repo}'>Waiting</div>`;
return `<div class='${RENDER_CLASS} git git-${owner}-${repo}'>Waiting</div>`;
}
}