Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/update-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ name: 'update assets'
on:
push:
branches:
- '12.x'
- master
- '*.x'
paths:
- '/src/Illuminate/Foundation/resources/exceptions/renderer/package-lock.json'
workflow_dispatch:
- 'src/Illuminate/Foundation/resources/exceptions/renderer/**'
- '!src/Illuminate/Foundation/resources/exceptions/renderer/dist/**'
pull_request:
paths:
- 'src/Illuminate/Foundation/resources/exceptions/renderer/**'
- '!src/Illuminate/Foundation/resources/exceptions/renderer/dist/**'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automatically builds assets on PR.


permissions:
contents: write
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ window.highlight = function (
pre(node) {
this.addClassToHast(node, ['bg-transparent!', truncate ? 'truncate' : 'w-fit min-w-full']);
},
code(node) {
this.addClassToHast(node, 'flex flex-col');
},
Comment on lines -66 to -68
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks text truncation.

line(node, line) {
if (!editor) {
return;
Expand All @@ -89,7 +86,7 @@ window.highlight = function (
node.children.unshift(lineNumberSpan);

this.addClassToHast(node, [
'block px-4 py-1 h-7 even:bg-white odd:bg-white/2 even:dark:bg-white/2 odd:dark:bg-white/4',
'inline-block w-full px-4 py-1 h-7 even:bg-white odd:bg-white/2 even:dark:bg-white/2 odd:dark:bg-white/4',
highlight ? 'bg-rose-200! dark:bg-rose-900!' : '',
]);
},
Expand Down