Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
hu8813 committed Apr 23, 2024
1 parent 9d5e32c commit e671831
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 43 deletions.
41 changes: 1 addition & 40 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,49 +36,10 @@ services:
depends_on:
- backend

# prometheus:
# container_name: prometheus
# build: ./src/prometheus
# image: prometheus
# volumes:
# - prometheus:/volumes/prometheus
# ports:
# - '9090:9090'
# networks:
# - transcendence
# env_file:
# - .env
# restart: unless-stopped
# grafana:
# container_name: grafana
# build: ./src/grafana
# image: grafana
# ports:
# - 3000:3000
# volumes:
# - grafana:/volumes/grafana
# networks:
# - transcendence
# env_file:
# - .env
# restart: unless-stopped

volumes:
database-postgres:
# prometheus:
# name: prometheus
# driver: local
# driver_opts:
# device: ${VOLUME_PATH}/prometheus
# o: bind
# type: none
# grafana:
# name: grafana
# driver: local
# driver_opts:
# device: ${VOLUME_PATH}/grafana
# o: bind
# type: none


networks:
transcendence:
Expand Down
11 changes: 9 additions & 2 deletions srcs/frontend/css/Leaderboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,16 @@ th span {
}

@media only screen and (max-width: 600px) {
table th, table td {
table th:nth-child(4),
table th:nth-child(5),
table td:nth-child(4),
table td:nth-child(5) {
display: none;
}

table th,
table td {
padding: 0.5em;
font-size: 0.8em;
}
}

2 changes: 1 addition & 1 deletion srcs/frontend/js/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ async function selectAvatar(imageLink) {
if (errorMessageElement) {
errorMessageElement.textContent = 'Avatar changed successfully';
}
await fetchLeaderboardData();
} catch (error) {
// Handle errors
console.error('Error updating profile:', error);
displayErrorMessage(error.message);
throw new Error('Failed to update profile');
Expand Down

0 comments on commit e671831

Please sign in to comment.