Ron Au commited on
Commit
120da3b
1 Parent(s): 1ac49a7

WIP: Safari bugs

Browse files
static/js/dom-manipulation.js CHANGED
@@ -108,6 +108,8 @@ const setOutput = (mode, state) => {
108
  const screenshotCard = async () => {
109
  const card = document.querySelector('.pokecard');
110
  console.log({ card });
 
 
111
 
112
  const imageUrl = await toPng(card, {
113
  width: 400,
 
108
  const screenshotCard = async () => {
109
  const card = document.querySelector('.pokecard');
110
  console.log({ card });
111
+ console.log('card .img.picture:');
112
+ console.log(card.querySelector('img.picture'));
113
 
114
  const imageUrl = await toPng(card, {
115
  width: 400,
static/js/index.js CHANGED
@@ -55,8 +55,7 @@ const generate = async () => {
55
 
56
  cardSlot.innerHTML = cardHTML(details);
57
  updateCardName(trainerName, pokeName, useTrainerName);
58
- const picture = document.querySelector('img.picture');
59
- picture.src = completedTask.value;
60
 
61
  mousemoveHandlerForPreviousCard = initialiseCardRotation(scene);
62
 
 
55
 
56
  cardSlot.innerHTML = cardHTML(details);
57
  updateCardName(trainerName, pokeName, useTrainerName);
58
+ document.querySelector('img.picture').src = completedTask.value;
 
59
 
60
  mousemoveHandlerForPreviousCard = initialiseCardRotation(scene);
61
 
static/style.css CHANGED
@@ -986,7 +986,7 @@ header .energy {
986
 
987
  .energy {
988
  width: 1.2rem;
989
- aspect-ratio: 1 / 1;
990
  text-align: center;
991
  cursor: default;
992
  user-select: none;
 
986
 
987
  .energy {
988
  width: 1.2rem;
989
+ height: 1.2rem;
990
  text-align: center;
991
  cursor: default;
992
  user-select: none;