Skip to content

Commit

Permalink
Move admin links to the far right of the row
Browse files Browse the repository at this point in the history
  • Loading branch information
trymebytes committed Jan 7, 2025
1 parent 4c7b5e1 commit 45fd5b4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
14 changes: 11 additions & 3 deletions themes/wporg-translate-events-2024/blocks/event-list/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,20 @@
<?php
endif;
?>
<!-- wp:wporg-translate-events-2024/event-edit-link /-->
<!-- wp:wporg-translate-events-2024/event-trash-link /-->
<!-- wp:wporg-translate-events-2024/event-delete-link /-->
</div>
<!-- wp:wporg-translate-events-2024/event-attendance-mode /-->
<!-- wp:wporg-translate-events-2024/event-start /-->
<?php
if ( current_user_can( 'edit_translation_event', $event_id ) ) :
?>
<div class="gp-events-admin-links">
<!-- wp:wporg-translate-events-2024/event-edit-link /-->
<!-- wp:wporg-translate-events-2024/event-trash-link /-->
<!-- wp:wporg-translate-events-2024/event-delete-link /-->
</div>
<?php
endif;
?>
<!-- /wp:wporg-translate-events-2024/event-template -->
</li>
<?php
Expand Down
8 changes: 6 additions & 2 deletions themes/wporg-translate-events-2024/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,16 @@ span.user-remote-icon.dashicons-video-alt2 {
background-color: var(--wp--preset--color--vivid-green-cyan);
}

.gp-events-admin-links {
text-align: right;
}

@media (min-width: 960px) {
.wporg-marker-list__container .wporg-marker-list-item {
display: grid;
align-items: start;
gap: var(--wp--preset--spacing--20);
grid-template-columns: 45% 1fr 2fr;
grid-template-columns: 45% 1fr 1fr 1fr;
}
}

Expand All @@ -274,7 +278,7 @@ span.user-remote-icon.dashicons-video-alt2 {

@media (min-width: 1280px) {
.wporg-marker-list__container .wporg-marker-list-item {
grid-template-columns: 60% 1fr 1fr;
grid-template-columns: 60% repeat(auto-fit, minmax(0, 1fr));
}
}

Expand Down

0 comments on commit 45fd5b4

Please sign in to comment.