mobile adaptation
Gitea Actions Demo / build_and_push (push) Failing after 34s Details

This commit is contained in:
artem 2025-01-03 08:54:22 +03:00
parent ea1c8105f9
commit 3bcf10f788
4 changed files with 31 additions and 4 deletions

View File

@ -56,8 +56,8 @@
"users": "Users", "users": "Users",
"projects": "Projects", "projects": "Projects",
"workouts": "Тренировки", "workouts": "Тренировки",
"upload_workouts": "Загрузить тренировку", "upload_workouts": "Загрузить",
"list_workouts": "Лента" "list_workouts": "Мои"
}, },
"messages": { "messages": {
"all": "See all messages", "all": "See all messages",

View File

@ -112,4 +112,7 @@ const onCloseSidebarButtonClick = () => {
width: unset !important; width: unset !important;
min-width: unset !important; min-width: unset !important;
} }
body {
min-width: 350px;
}
</style> </style>

View File

@ -67,7 +67,7 @@ export const GetWorkout = (url: string) => {
datasets: datasets datasets: datasets
} }
if (response.data.workout.external_links && response.data.workout.external_links.values) { if (response.data.workout.external_links && response.data.workout.external_links.values && response.data.workout.external_links.values.length > 0) {
dzenLink = response.data.workout.external_links.values[0].value; dzenLink = response.data.workout.external_links.values[0].value;
} }
return { workoutItem, mapCenter, lineCoordinates, data, dzenLink }; return { workoutItem, mapCenter, lineCoordinates, data, dzenLink };

View File

@ -334,8 +334,8 @@ const resetChartZoom = () => {
display: flex; display: flex;
width: 100%; width: 100%;
justify-content: space-between; justify-content: space-between;
min-width: 350px;
} }
#workout-map { #workout-map {
width: 70%; width: 70%;
} }
@ -344,6 +344,30 @@ const resetChartZoom = () => {
width: 30%; width: 30%;
padding: 0 0 0 20px; padding: 0 0 0 20px;
} }
@media (max-width: 550px) {
#workout-container {
flex-direction: column;
}
#workout-map {
width: 100%;
}
#workout-short-data {
margin: 11px auto 0 auto;
width: 80%;
}
}
@media (min-width: 551px) and (max-width: 805px) {
#workout-container {
flex-direction: column;
}
#workout-map {
width: 100%;
}
#workout-short-data {
width: 50%;
margin: 11px auto 0 auto;
}
}
h3 { h3 {
margin-bottom: 10px; margin-bottom: 10px;
font-size: 20px; font-size: 20px;