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

pinned broadcast streamer #15014

Merged
merged 8 commits into from
Apr 1, 2024

Conversation

schlawg
Copy link
Collaborator

@schlawg schlawg commented Apr 1, 2024

this code is mostly brand new and it already needs refactoring. ah well

@@ -60,12 +60,37 @@ export function renderStreamerMenu(relay: RelayCtrl) {
);
}

export function renderPinnedImage(relay: RelayCtrl) {
if (
window.getComputedStyle(document.body).getPropertyValue('--allow-video') !== 'true' ||
Copy link
Collaborator

Choose a reason for hiding this comment

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

note to self: refactor/cache that in a ctrl.prop and invalidate on window resize

return undefined;

return h('img', {
attrs: { src: relay.data.pinned.image, style: 'cursor: pointer;' },
Copy link
Collaborator

Choose a reason for hiding this comment

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

style in js

@ornicar ornicar merged commit e2a4161 into lichess-org:master Apr 1, 2024
6 checks passed
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.

2 participants