Skip to content

Commit f9f1f9b

Browse files
committed
enh: improve optimization status card layout and style
1 parent 59f2764 commit f9f1f9b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

assets/src/dashboard/parts/connected/OptimizationStatus.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ const OptimizationStatus = ({ settings }) => {
2323

2424
return (
2525
<div className="bg-white flex flex-col text-gray-700 border-0 rounded-lg shadow-md p-8">
26-
<h3 className="text-base m-0">{ optimoleDashboardApp.strings.optimization_status.title }</h3>
27-
<ul>
26+
<h3 className="text-base m-0 mb-4">{ optimoleDashboardApp.strings.optimization_status.title }</h3>
27+
<ul className="grid gap-3 m-0">
2828
{ statuses.map( ( status, index ) => {
2929
let statusClass = status.active ? 'success' : 'danger';
3030
return (
@@ -49,7 +49,7 @@ const OptimizationStatus = ({ settings }) => {
4949
}) }
5050
</ul>
5151
<p
52-
className="m-0 mt-3"
52+
className="m-0 mt-5"
5353
dangerouslySetInnerHTML={ {
5454
__html: optimoleDashboardApp.strings.optimization_tips
5555
} }

inc/admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,7 @@ private function get_dashboard_strings() {
19871987
'optimization_tips' => sprintf(
19881988
/* translators: 1 is the opening anchor tag, 2 is the closing anchor tag */
19891989
__( '%1$sView all optimization tips%2$s', 'optimole-wp' ),
1990-
'<a class="flex justify-center font-bold rounded hover:opacity-90 transition-opacity" href="https://docs.optimole.com/article/2238-optimization-tips" target="_blank"> ',
1990+
'<a class="flex justify-center items-center font-semibold" href="https://docs.optimole.com/article/2238-optimization-tips" target="_blank"> ',
19911991
'<span style="text-decoration:none; font-size:15px; margin-top:2px;" class="dashicons dashicons-external"></span></a>'
19921992
),
19931993
];

0 commit comments

Comments
 (0)