-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Some text in the wiki overlay overlaps #13310
Comments
For reference, this is how they look in osu!web: Visual settings page: Multi page: |
After initial investigation the text flow |
Quite likely. If you're able to test with a local framework, try applying the following change: diff --git a/osu.Framework/Graphics/Containers/Markdown/MarkdownTable.cs b/osu.Framework/Graphics/Containers/Markdown/MarkdownTable.cs
index 3bc86b2239..7299fa580b 100644
--- a/osu.Framework/Graphics/Containers/Markdown/MarkdownTable.cs
+++ b/osu.Framework/Graphics/Containers/Markdown/MarkdownTable.cs
@@ -24,8 +24,8 @@ public class MarkdownTable : CompositeDrawable
private readonly Table table;
- private readonly LayoutValue columnDefinitionCache = new LayoutValue(Invalidation.DrawSize, conditions: (s, _) => s.Parent != null);
- private readonly LayoutValue rowDefinitionCache = new LayoutValue(Invalidation.DrawSize, conditions: (s, _) => s.Parent != null);
+ private readonly LayoutValue columnDefinitionCache = new LayoutValue(Invalidation.DrawSize, InvalidationSource.Default | InvalidationSource.Child, conditions: (s, _) => s.Parent != null);
+ private readonly LayoutValue rowDefinitionCache = new LayoutValue(Invalidation.DrawSize, InvalidationSource.Default | InvalidationSource.Child, conditions: (s, _) => s.Parent != null);
public MarkdownTable(Table table)
{ |
Update for this. This happen because Now, because the column width is changed to relative, each column width is It's not a problem if the content is plain text flow because it can wrap. But it's a problem with inline code and emphasis text, like in OP, because they can't wrap, so the content is overflow. I'm not sure how to approach this issue. |
I think the fix is making the framework support wrapping in nested TFCs. The bigger question I have is how that's going to support backgrounds, because for example web displays the corner radius as:
Not sure on the solution yet, but I suspect adding support for nested TFCs is not enough by itself. |
Describe the bug:
some text in the wiki pages overlaps
Screenshots or videos showing encountered issue:
![image](https://user-images.githubusercontent.com/43358824/120551848-cafecf00-c3f6-11eb-836f-b159b2bd1132.png)
visual settings page:
multi page:
![osu!_vsxkgyMSGq](https://user-images.githubusercontent.com/43358824/120552638-c850a980-c3f7-11eb-8fe0-2a4cb70a0c9c.png)
osu!lazer version:
2021.602.0
The text was updated successfully, but these errors were encountered: