Skip to content

Commit

Permalink
Fix comment collapse width
Browse files Browse the repository at this point in the history
  • Loading branch information
jackstenglein committed Apr 4, 2024
1 parent cccb18e commit e04b0c8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions backend/database/games.go
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,10 @@ func (repo *dynamoRepository) SetGameReview(cohort, id string, review *GameRevie
}

func getCommentPath(parentIds string, exprAttrNames map[string]*string) string {
if parentIds == "" {
return ""
}

var parentPath strings.Builder
parentIdList := strings.Split(parentIds, ",")
for i, id := range parentIdList {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ const BaseComment: React.FC<BaseCommentProps> = ({
alignItems='center'
sx={{
width: '20px',
minWidth: '20px',
maxWidth: '20px',
cursor: 'pointer',

':hover .MuiDivider-root': {
Expand Down
3 changes: 2 additions & 1 deletion scripts/convert_game_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def process_game(batch, game):
},
'createdAt': c['createdAt'],
'updatedAt': c['updatedAt'],
'content': c['content']
'content': c['content'],
'replies': {}
}
position = position_comments.get(STARTING_FEN, {})
position[new_comment['id']] = new_comment
Expand Down

0 comments on commit e04b0c8

Please sign in to comment.