Mobile: code formatting changes when codeblocks are fullscreen
#26,913 opened on Apr 29, 2024
Repository metrics
- Stars
- (32,880 stars)
- PR merge metrics
- (Avg merge 6d 5h) (318 merged PRs in 30d)
Description
Mobile app v2.15
When opening a codeblock in full screen the highlighting changes. If you notice the purple key when viewing the post change to white when viewing the code. (See linked Jira ticket for screenshots)
The issue here is likely that the user-specified language isn’t passed correctly to the full screen version. The post from the screenshots specifies the language to be Go. Here’s the text of the post:
" Why is it common in our go codebase to have wide vs long code?
This:
groupConstrainedChannel := &model.Channel{DisplayName: "Test API Name", Name: GenerateTestChannelName(), Type: model.ChannelTypeOpen, TeamId: team.Id, GroupConstrained: model.NewBool(true)}
Versus:
groupConstrainedChannel := &model.Channel{
DisplayName: "Test API Name",
Name: GenerateTestChannelName(),
Type: model.ChannelTypeOpen,
TeamId: team.Id,
GroupConstrained: model.NewBool(true),
}
"
If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.
New contributors please see our Developer's Guide.