Skip to content

Commit

Permalink
Merge pull request #341 from ernilambar/improve-check-message
Browse files Browse the repository at this point in the history
Improve check message
  • Loading branch information
mukeshpanchal27 authored Jan 4, 2024
2 parents ae5fdc5 + cf39c42 commit b0d4adc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
8 changes: 3 additions & 5 deletions assets/js/plugin-check-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,11 @@
? pluginCheck.successMessage
: pluginCheck.errorMessage;

resultsContainer.innerHTML += renderTemplate(
'plugin-check-results-complete',
{
resultsContainer.innerHTML =
renderTemplate( 'plugin-check-results-complete', {
type: messageType,
message: messageText,
}
);
} ) + resultsContainer.innerHTML;
}

/**
Expand Down
16 changes: 16 additions & 0 deletions includes/Admin/Admin_Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,22 @@ public function admin_footer() {
'type' => 'text/template',
)
);
?>
<style>
#plugin-check__results .notice,
#plugin-check__results .notice + h4 {
margin-top: 20px;
}
#plugin-check__results h4:first-child {
margin-top: 80.5px;
}
@media ( max-width: 782px ) {
#plugin-check__results h4:first-child {
margin-top: 88.5px;
}
}
</style>
<?php
}

/**
Expand Down

0 comments on commit b0d4adc

Please sign in to comment.