Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile: code formatting changes when codeblocks are fullscreen #26913

Open
mattermod opened this issue Apr 29, 2024 · 1 comment
Open

Mobile: code formatting changes when codeblocks are fullscreen #26913

mattermod opened this issue Apr 29, 2024 · 1 comment
Assignees
Labels
Difficulty/1:Easy Easy ticket Help Wanted Community help wanted Tech/React Native Mobile app

Comments

@mattermod
Copy link
Contributor

mattermod commented Apr 29, 2024

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.

JIRA: https://mattermost.atlassian.net/browse/MM-57929

@mattermod mattermod added Help Wanted Community help wanted Up For Grabs labels Apr 29, 2024
@evan175
Copy link

evan175 commented May 13, 2024

Can I work on this pls?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty/1:Easy Easy ticket Help Wanted Community help wanted Tech/React Native Mobile app
Projects
None yet
Development

No branches or pull requests

4 participants