Fix mobile layout and text wrapping: prevent button overlap, improve text wrapping on desktop, fix mobile responsiveness
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user