Skip to content

Commit

Permalink
style: modify preview video style.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 5, 2024
1 parent cb3a128 commit a887b09
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,14 +569,14 @@ markdown-style sup>a::after {
content: "]";
}
.markdown-body .octicon-video {
border: 1px solid #d0d7de !important;
markdown-body .octicon-video {
border: 1px solid var(--color-border-default) !important;
border-radius: 6px !important;
display: block;
}
markdown-style .octicon-video summary {
border-bottom: 1px solid #d0d7de !important;
border-bottom: 1px solid var(--color-border-default) !important;
padding: 8px 16px !important;
cursor: pointer;
}
Expand Down Expand Up @@ -1011,8 +1011,8 @@ class MarkdownStyle extends HTMLElement {
}
connectedCallback() {
const disableThemeAutoSwitch = this.getAttribute('theme-auto-switch-disabled');
if (disableThemeAutoSwitch == "" || disableThemeAutoSwitch && disableThemeAutoSwitch.toLowerCase() === 'true') {
return
if (disableThemeAutoSwitch == '' || (disableThemeAutoSwitch && disableThemeAutoSwitch.toLowerCase() === 'true')) {
return;
}
if (!this.theme) {
const { colorMode } = document.documentElement.dataset as Record<string, Theme>;
Expand Down

0 comments on commit a887b09

Please sign in to comment.