Skip to content

Commit

Permalink
Fix message border styles
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Sep 28, 2023
1 parent 9cbb9b0 commit 3f21f86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export async function publint({ pkgDir, vfs, level, strict, _packedFiles }) {
])
if (moduleContent === false) return
if (hasInvalidJsxExtension(module, modulePkgPath)) return
if (!isFilePathLintable(main)) return
if (!isFilePathLintable(module)) return
const actualFormat = getCodeFormat(moduleContent)
if (actualFormat === 'CJS') {
messages.push({
Expand Down
6 changes: 5 additions & 1 deletion site/src/components/PkgNode.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<div
class="
{messageTypeToColor(msg.type)}
message-type-{msg.type} border-4 px-4 py-2 scroll-mt-8
message message-type-{msg.type} border-solid border-4 px-4 py-2 scroll-mt-8
"
>
{@html formatMessage(msg, pkg)}
Expand Down Expand Up @@ -122,6 +122,10 @@
margin-left: var(--indent-ch);
}
.message ~ .message {
border-top: 0;
}
@media (prefers-color-scheme: dark) {
.key {
color: #9cdcfe;
Expand Down

0 comments on commit 3f21f86

Please sign in to comment.