An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Fix color highlighting not applying on initial runtime logs load
Andras Bacsai334fd2500fea
diff --git a/resources/views/livewire/project/shared/get-logs.blade.php b/resources/views/livewire/project/shared/get-logs.blade.phpindex 2be3d3a327..9fcd52cd73 100644--- a/resources/views/livewire/project/shared/get-logs.blade.php+++ b/resources/views/livewire/project/shared/get-logs.blade.php@@ -192,16 +192,28 @@this.applySearch();});- // Apply colors after Livewire updates+ // Handler for applying colors and search after DOM changes+ const applyAfterUpdate = () => {+ this.$nextTick(() => {+ this.applyColorLogs();+ this.applySearch();+ if (this.alwaysScroll) {+ this.scrollToBottom();+ }+ });+ };++ // Apply colors after Livewire updates (existing content)Livewire.hook('morph.updated', ({ el }) => {if (el.id === 'logs') {- this.$nextTick(() => {- this.applyColorLogs();- this.applySearch();- if (this.alwaysScroll) {- this.scrollToBottom();- }- });+ applyAfterUpdate();+ }+ });++ // Apply colors after Livewire adds new content (initial load)+ Livewire.hook('morph.added', ({ el }) => {+ if (el.id === 'logs') {+ applyAfterUpdate();}});}