Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add video icon to flag remote events #370

Merged
merged 0 commits into from
Nov 13, 2024

Conversation

trymebytes
Copy link
Collaborator

@trymebytes trymebytes commented Oct 14, 2024

Fixes #335 To allow easy identification of remote-only events.

Before
Screenshot 2024-10-14 at 16 12 22

After
Screenshot 2024-10-14 at 16 10 49

@trymebytes trymebytes changed the base branch from trunk to contributor-attendance-mode October 14, 2024 17:09
@trymebytes trymebytes marked this pull request as ready for review October 14, 2024 17:16
@trymebytes trymebytes requested a review from akirk October 14, 2024 17:16
<?php
if ( 'remote' === $event->attendance_mode() ) {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo do_blocks( sprintf( '<!-- wp:wporg-translate-events-2024/remote-attendance-icon %s /-->', wp_json_encode( array( 'inline_css' => 'float:left; margin-right:3px' ) ) ) );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add some margin in the top. You can see the 5px in the row (1) vs the current margin in the row (2).

image

Suggested change
echo do_blocks( sprintf( '<!-- wp:wporg-translate-events-2024/remote-attendance-icon %s /-->', wp_json_encode( array( 'inline_css' => 'float:left; margin-right:3px' ) ) ) );
echo do_blocks( sprintf( '<!-- wp:wporg-translate-events-2024/remote-attendance-icon %s /-->', wp_json_encode( array( 'inline_css' => 'float:left; margin:5px 3px 0 0' ) ) ) );

One question about adding the inline CSS: what do you thing about extracting these CSS to a CSS file instead of adding them inline?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved in #377

@trymebytes trymebytes merged commit 9cea88b into contributor-attendance-mode Nov 13, 2024
@trymebytes trymebytes force-pushed the contributor-attendance-mode branch from e01b7f1 to 9cea88b Compare November 13, 2024 15:25
@trymebytes trymebytes deleted the remote-event-icon branch November 13, 2024 15:25
@trymebytes trymebytes restored the remote-event-icon branch November 13, 2024 15:57
@trymebytes
Copy link
Collaborator Author

Resolved in #377

@akirk akirk mentioned this pull request Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flag for remote event
2 participants