Update modules/ui/ui.py
Browse files117 unmodified lines118119120121122123124125126127128129130131132133117 unmodified linesst.session_state.current_event = (current_idx + 1) % len(eventos)st.rerun()# Indicadores de posiciónst.markdown("<div class='carousel-nav'>", unsafe_allow_html=True)cols = st.columns(len(eventos))for i, col in enumerate(cols):with col:if st.button("•", key=f"carousel_dot_{i}"):st.session_state.current_event = ist.rerun()st.markdown("</div>", unsafe_allow_html=True)except Exception as e:st.error(f"Error al mostrar el carrusel: {str(e)}")logger.error(f"Error en show_carousel: {str(e)}")117 unmodified lines118119120121122123124125126127128129130117 unmodified linesst.session_state.current_event = (current_idx + 1) % len(eventos)st.rerun()# Indicadores de posición (solo visuales, no botones)st.markdown("<div class='carousel-nav'>", unsafe_allow_html=True)for i in range(len(eventos)):active_class = "carousel-dot active" if i == current_idx else "carousel-dot"st.markdown(f"<span class='{active_class}'></span>", unsafe_allow_html=True)st.markdown("</div>", unsafe_allow_html=True)except Exception as e:st.error(f"Error al mostrar el carrusel: {str(e)}")logger.error(f"Error en show_carousel: {str(e)}")
modules/ui/ui.py+5-8