Starchik1 commited on
Commit
e2611e7
·
verified ·
1 Parent(s): 0425543

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -141,7 +141,7 @@ def proxy(path):
141
  button['target'] = '_blank'
142
  button['class'] = 'open-image-btn'
143
  button.string = 'Открыть оригинал изображения'
144
- button['style'] = 'display: flex; align-items: center; justify-content: center; min-height: 40px; min-width: 200px; margin: 10px; padding: 12px 20px; background-color: #4a90e2; border: none; border-radius: 4px; text-decoration: none; color: white; font-weight: 500; transition: all 0.3s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center; line-height: 1.2; width: 100%;'
145
  img.insert_after(button)
146
 
147
  # Add modal container for fullscreen image view
 
141
  button['target'] = '_blank'
142
  button['class'] = 'open-image-btn'
143
  button.string = 'Открыть оригинал изображения'
144
+ button['style'] = 'display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin: 10px; padding: 12px 24px; background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%); background-size: 200% 200%; border: none; border-radius: 8px; text-decoration: none; color: white; font-weight: 500; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center; line-height: 1.4; width: fit-content; white-space: normal; word-wrap: break-word; max-width: 100%; hyphens: auto; cursor: pointer; overflow-wrap: break-word; animation: gradient 3s ease infinite; @media (max-width: 768px) { padding: 10px 16px; min-height: 40px; font-size: 14px; } @media (max-width: 480px) { padding: 8px 12px; min-height: 36px; font-size: 13px; }'
145
  img.insert_after(button)
146
 
147
  # Add modal container for fullscreen image view