Fix mobile layout and text wrapping: prevent button overlap, improve text wrapping on desktop, fix mobile responsiveness

This commit is contained in:
Marcus Quinn
2025-03-25 00:39:30 +00:00
parent c3d1aff49f
commit 5f45ea85fa
2 changed files with 68 additions and 22 deletions

View File

@ -1074,7 +1074,7 @@ body.wp-admin .button.pricing-button:hover,
#recommended .plugin-card .name,
#recommended .plugin-card .desc {
margin-left: 84px;
margin-right: 120px; /* Ensure description doesn't overlap buttons */
margin-right: 130px; /* Increase right margin to prevent text from going behind buttons */
}
#recommended .plugin-card .name h3 {
@ -1101,6 +1101,7 @@ body.wp-admin .button.pricing-button:hover,
flex-direction: column;
align-items: flex-end;
gap: 8px;
padding-right: 20px; /* Add padding to give text more space */
}
#recommended .plugin-card .plugin-action-buttons {
@ -1137,7 +1138,7 @@ body.wp-admin .button.pricing-button:hover,
justify-content: center;
}
/* Responsive adjustments - maintain single column but adjust padding */
/* Responsive adjustments - improve mobile layout */
@media screen and (max-width: 782px) {
#recommended .wpa-plugin-container {
padding: 16px;
@ -1145,35 +1146,44 @@ body.wp-admin .button.pricing-button:hover,
#recommended .plugin-card {
padding: 16px;
position: relative;
}
#recommended .plugin-card .name,
#recommended .plugin-card .desc {
margin-right: 0; /* Allow full width on mobile */
margin-bottom: 60px; /* Space for action buttons below */
}
#recommended .plugin-card .action-links {
position: absolute;
position: relative;
width: 100%;
top: auto;
bottom: 15px;
left: 16px;
right: 16px;
width: auto;
right: auto;
padding-right: 0;
margin-top: 16px;
flex-direction: row;
justify-content: flex-end;
}
#recommended .plugin-card .plugin-action-buttons {
width: 100%;
width: auto;
}
#recommended .plugin-card .plugin-action-buttons .button {
width: auto;
min-width: 120px;
}
}
/* Extra small screens */
@media screen and (max-width: 480px) {
#recommended .plugin-card {
padding-top: 80px; /* Add space for icon */
}
#recommended .plugin-card .name,
#recommended .plugin-card .desc {
margin-left: 0;
margin-top: 80px; /* Space for icon above */
}
#recommended .plugin-card .plugin-icon {
@ -1182,6 +1192,19 @@ body.wp-admin .button.pricing-button:hover,
left: 16px;
float: none;
}
#recommended .plugin-card .action-links {
flex-direction: column;
align-items: stretch;
}
#recommended .plugin-card .plugin-action-buttons {
width: 100%;
}
#recommended .plugin-card .plugin-action-buttons .button {
width: 100%;
}
}
/* Style compatibility message */