Code Monkey home page Code Monkey logo

enhanced-embed-block's People

Contributors

cbirdsong avatar mrwweb avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

cbirdsong

enhanced-embed-block's Issues

Fix Stable Tag and Implement readme updater action

The Stable Tag field is invalid, the specified SVN tag /tags/0.1.0/ does not exist. /trunk/ will be used instead.
The Stable tag field is missing or invalid. Note: We ask you no longer attempt to use /trunk/ as stable, so that all plugins can be rolled back.

Increase poster resolution to maximum

The default poster image size for <lite-youtube> is "hqdefault", which I guess is 480x360. This looks bad when displayed full width in a content area. The component does support a posterquality attribute that accepts values that apparently correspond to the following resolutions:

name resolution
mqdefault 320x180
hqdefault 480x360
sddefault 640x480
maxresdefault 1280x720

Considering how the embed block renders, I think maxresdefault/1280x720 is the only reasonable choice for most sites. I would guess the default content area width in most themes is larger than sddefault's width of 640px.

(YouTube should really provide more granularity here, but I guess they didn't leave themselves much wiggle room after naming the 720p size "max res".)

Avoid filtering the block inside RSS feeds

In a full text RSS feed, the <lite-youtube> embed is included. It all still works since the fallback is a link that says "watch whatever on YouTube" (yay progressive enhancement!), but it would probably be better if it just did a if (is_feed()) check before changing the markup since <lite-youtube> will never work in this context.

Add filter for nocookie attribute

In #5, you mentioned adding a filter/setting for the poster image size. It would probably also be a good idea to add one for the nocookie attribute in case someone needs to disable that for some complicated analytics-related reason.

Fallback link is hard to read if the site uses a background color on links

Our theme has a little color tint when you hover over a link:

A link with a dark green underline and a light green background color. Imagine a mouse pointer is hovering over it.

That also applies to the .lite-youtube-fallback link if the lite-youtube script fails to load:

CleanShot.2024-07-08.at.17.04.55.mp4

Easy solution:

  • also apply the background color with !important

Complicated solution:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.