Skip to content

Instantly share code, notes, and snippets.

@gijigae
Created June 18, 2022 01:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gijigae/842ba7ac789b97bdada90567fa10779c to your computer and use it in GitHub Desktop.
Save gijigae/842ba7ac789b97bdada90567fa10779c to your computer and use it in GitHub Desktop.
Toggle the size of YouTube video player in Logseq
/* YouTube Video */
iframe[id^='youtube-player'] {
height: 200px !important;
width: 400px !important;
}
div.ls-wide-mode iframe[id^='youtube-player'] {
height: 600px !important;
width: 100% !important;
}
/* YouTube Video */
@kkhrv
Copy link

kkhrv commented Feb 10, 2023

After the last Logseq update we have to replace div with main, to make this code work:

main.ls-wide-mode iframe[id^='youtube-player'] {
  height: 600px !important;
  width: 100% !important;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment