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(ui): remove duplicate metrics tooltip border
Nexmoee56905e5c022
diff --git a/resources/css/utilities.css b/resources/css/utilities.cssindex 668cb755b2..0dcd16e64b 100644--- a/resources/css/utilities.css+++ b/resources/css/utilities.css@@ -1,5 +1,5 @@@utility apexcharts-tooltip {- @apply dark:text-white! dark:border-coolgray-300! dark:bg-coolgray-200! shadow-none!;+ @apply overflow-visible! rounded-none! border-0! bg-transparent! shadow-none! dark:text-white!;}@utility apexcharts-tooltip-title {diff --git a/tests/Feature/MetricsTooltipStylingTest.php b/tests/Feature/MetricsTooltipStylingTest.phpnew file mode 100644index 0000000000..f748487e59--- /dev/null+++ b/tests/Feature/MetricsTooltipStylingTest.php@@ -0,0 +1,31 @@+<?php++test('apexcharts delegates tooltip chrome to the custom content', function () {+ $utilities = file_get_contents(resource_path('css/utilities.css'));++ preg_match('/@utility apexcharts-tooltip \{[^}]*\}/s', $utilities, $tooltip);+ preg_match('/@utility apexcharts-tooltip-custom \{[^}]*\}/s', $utilities, $customTooltip);++ expect($tooltip[0] ?? '')+ ->toContain('overflow-visible!')+ ->toContain('rounded-none!')+ ->toContain('border-0!')+ ->toContain('bg-transparent!')+ ->toContain('shadow-none!')+ ->not->toContain('dark:border-coolgray-300!')+ ->not->toContain('dark:bg-coolgray-200!')+ ->and($customTooltip[0] ?? '')+ ->toContain('border-neutral-200')+ ->toContain('dark:border-coolgray-300')+ ->toContain('rounded-lg')+ ->toContain('shadow-lg');+});++test('metrics charts render custom tooltip content', function (string $view) {+ expect(file_get_contents(resource_path($view)))+ ->toContain('apexcharts-tooltip-custom');+})->with([+ 'dashboard server metrics' => 'views/livewire/dashboard/server-metrics-chart.blade.php',+ 'server metrics' => 'views/livewire/server/charts.blade.php',+ 'resource metrics' => 'views/livewire/project/shared/metrics.blade.php',+]);