cha0smagick commited on
Commit
92e414c
1 Parent(s): 09178a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -46,6 +46,7 @@ st.markdown(
46
  margin: 20px auto;
47
  text-align: center;
48
  text-decoration: none;
 
49
  }
50
  .button:hover {
51
  background-color: #1976D2;
@@ -60,6 +61,10 @@ st.markdown(
60
  padding: 10px;
61
  border: 1px solid #ddd;
62
  }
 
 
 
 
63
  </style>
64
  """,
65
  unsafe_allow_html=True
@@ -79,4 +84,4 @@ if st.button("Actualizar datos", key='update_button', help="Actualiza las estad
79
  st.dataframe(df[['coin', 'name', 'price', 'volume', 'algorithm', 'difficulty', 'reward_block']],
80
  use_container_width=True)
81
  else:
82
- st.markdown('<p style="text-align: center;">Presiona el botón para actualizar los datos.</p>', unsafe_allow_html=True)
 
46
  margin: 20px auto;
47
  text-align: center;
48
  text-decoration: none;
49
+ width: 200px; /* Ajusta el ancho del botón */
50
  }
51
  .button:hover {
52
  background-color: #1976D2;
 
61
  padding: 10px;
62
  border: 1px solid #ddd;
63
  }
64
+ .center {
65
+ display: flex;
66
+ justify-content: center;
67
+ }
68
  </style>
69
  """,
70
  unsafe_allow_html=True
 
84
  st.dataframe(df[['coin', 'name', 'price', 'volume', 'algorithm', 'difficulty', 'reward_block']],
85
  use_container_width=True)
86
  else:
87
+ st.markdown('<div class="center"><button class="button" onclick="window.location.reload()">Actualizar datos</button></div>', unsafe_allow_html=True)