From fa6bbb0447334f61ad8d86aabd0fbb4cd79a945d Mon Sep 17 00:00:00 2001 From: Tsukina-7mochi Date: Tue, 11 Jun 2024 18:12:05 +0900 Subject: [PATCH] fix: replace ids into classes --- src/repositoryCardDisplay.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/repositoryCardDisplay.ts b/src/repositoryCardDisplay.ts index 3339bfd..b792bce 100644 --- a/src/repositoryCardDisplay.ts +++ b/src/repositoryCardDisplay.ts @@ -50,7 +50,7 @@ export class RepositoryCardDisplay extends LitElement { color: #646cff; } - a#wrapper { + a.wrapper { display: flex; flex-direction: column; gap: 0.35em; @@ -79,22 +79,22 @@ export class RepositoryCardDisplay extends LitElement { gap: 1em; } - #avatar { + img.avatar { height: 3.5em; border-radius: 4px; } - #description { + p.description { margin: 0; overflow-wrap: anywhere; } - #source { + div.source { font-size: 0.9em; color: var(--c-fg-2); } - #topics > span { + div.topics > span { margin-right: 0.5em; } `; @@ -142,18 +142,18 @@ export class RepositoryCardDisplay extends LitElement { render() { const avatar = this.avatarUrl !== null - ? html`${this.owner}` + ? html`${this.owner}` : nothing; const forkSource = this.forkSource !== null - ? html`
fork from ${this.forkSource.full_name}
` + ? html`
fork from ${this.forkSource.full_name}
` : nothing; - const description = this.description !== null ? html`

${this.description}

` : nothing; + const description = this.description !== null ? html`

${this.description}

` : nothing; const language = this.language !== null - ? html`
${languageColorElement(this.language)} ${this.language}
` + ? html`
${languageColorElement(this.language)} ${this.language}
` : nothing; - const stars = this.stars !== null ? html`
${starIcon} ${this.stars}
` : nothing; - const forks = this.forks !== null ? html`
${forkIcon} ${this.forks}
` : nothing; - const license = this.license !== null ? html`
${licenseIcon} ${this.license}
` : nothing; + const stars = this.stars !== null ? html`
${starIcon} ${this.stars}
` : nothing; + const forks = this.forks !== null ? html`
${forkIcon} ${this.forks}
` : nothing; + const license = this.license !== null ? html`
${licenseIcon} ${this.license}
` : nothing; const topicSpans = html`${map(this.topics, (topic) => html`${topic}`)}`; const topicIcon = this.topics.length > 0 ? tagIcon : nothing; @@ -161,7 +161,7 @@ export class RepositoryCardDisplay extends LitElement { return html` - +
${avatar}
@@ -176,7 +176,7 @@ export class RepositoryCardDisplay extends LitElement { ${forks} ${license}
-
+
${topicIcon} ${topicSpans}