diff --git a/assets/css/admin.css b/assets/css/admin.css index a996ae3..d664e81 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -26,18 +26,6 @@ margin-bottom: 0; } -/* Kontener dla szczegółów aktywności */ -#statpress-details-container { - display: flex; - flex-wrap: wrap; - gap: 2%; -} -/* Szczegóły aktywności */ -.statpress-details-col { - flex: 1 1 48%; /* Pozwala na elastyczne dopasowanie, z bazową szerokością 48% */ - min-width: 300px; /* Zapobiega zbytniemu ściskaniu kolumn na mniejszych ekranach */ -} - /* Chart Controls */ .statpress-chart-controls { display: flex; @@ -202,5 +190,13 @@ .statpress-progress-bar { background: #1a73e8; height: 100%; border-radius: 10px; transition: width 0.5s ease-in-out; text-align: center; color: white; font-size: 12px; line-height: 20px; font-weight: 500; } .statpress-progress-bar-container.small .statpress-progress-bar { line-height: 12px; font-size: 0; } +/* Grid danych dla widoków (np. szczegóły aktywności) */ +.statpress-single-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 24px; } +.statpress-single-data-item { display: flex; flex-direction: column; } +.statpress-single-data-label { font-size: 12px; color: #5f6368; text-transform: uppercase; font-weight: 500; margin-bottom: 4px; } +.statpress-single-data-value { font-size: 15px; color: #202124; font-weight: 500; } +.statpress-single-data-value a { color: #1a73e8; text-decoration: none; } +.statpress-single-data-value a:hover { text-decoration: underline; } + /* Inne */ .wrap hr { border: 0; height: 1px; background: #dadce0; margin: 24px 0; } diff --git a/includes/admin/pages/page-activity-view.php b/includes/admin/pages/page-activity-view.php index cf0d5a1..7682753 100644 --- a/includes/admin/pages/page-activity-view.php +++ b/includes/admin/pages/page-activity-view.php @@ -38,12 +38,12 @@ function statpress_view_activity_page() { } // Funkcja pomocnicza do wyświetlania wiersza, jeśli wartość istnieje - $render_row = function( $label, $value, $unit = '' ) { + $render_row = function( $label, $value, $unit = '', $is_html = false ) { if ( ! is_null( $value ) && '' !== $value ) { - echo '
| Strava | Zobacz aktywność na Strava |
|---|---|
| Plik GPX | Pobierz plik GPX |