jykoh commited on
Commit
50aa841
1 Parent(s): ffe60c6

Disable hover on mobile

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -29,6 +29,9 @@ css = """
29
  #gallery { z-index: 999999; }
30
  #gallery img:hover {transform: scale(2.3); z-index: 999999; position: relative; padding-right: 30%; padding-bottom: 30%;}
31
  #gallery button img:hover {transform: none; z-index: 999999; position: relative; padding-right: 0; padding-bottom: 0;}
 
 
 
32
  """
33
 
34
  examples = [
 
29
  #gallery { z-index: 999999; }
30
  #gallery img:hover {transform: scale(2.3); z-index: 999999; position: relative; padding-right: 30%; padding-bottom: 30%;}
31
  #gallery button img:hover {transform: none; z-index: 999999; position: relative; padding-right: 0; padding-bottom: 0;}
32
+ @media (hover: none) {
33
+ #gallery img:hover {transform: none; z-index: 999999; position: relative; padding-right: 0; 0;}
34
+ }
35
  """
36
 
37
  examples = [