Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dima Krasner
Sharkey
Commits
49e2eb87
Verified
Commit
49e2eb87
authored
1 year ago
by
1Step621
Committed by
Marie
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix(frontend): MFMでfgとbgに長い単語を使うと改行されない問題を修正 (#12819)
* MFMでfgとbgに長い単語を使うと改行されない問題を修正 * update CHANGELOG.md
parent
24ca9ac5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts
+2
-2
2 additions, 2 deletions
...ontend/src/components/global/MkMisskeyFlavoredMarkdown.ts
with
3 additions
and
2 deletions
CHANGELOG.md
+
1
−
0
View file @
49e2eb87
...
...
@@ -21,6 +21,7 @@
### Client
-
Fix: 一部のモデログ(logYellowでの表示対象)について、表示の色が変わらない問題を修正
-
Feat: AiScript専用のMFM構文
`$[clickable.ev=EVENTNAME ...]`
を追加。
`Mk:C:mfm`
のオプション
`onClickEv`
に関数を渡すと、クリック時に
`EVENTNAME`
を引数にして呼び出す
-
Fix:
`fg`
/
`bg`
MFMに長い単語を指定すると、オーバーフローされずはみ出る問題を修正
### Server
-
Enhance: センシティブワードの設定がハッシュタグトレンドにも適用されるようになりました
...
...
This diff is collapsed.
Click to expand it.
packages/frontend/src/components/global/MkMisskeyFlavoredMarkdown.ts
+
2
−
2
View file @
49e2eb87
...
...
@@ -251,13 +251,13 @@ export default function(props: MfmProps, context: SetupContext<MfmEvents>) {
case
'
fg
'
:
{
let
color
=
token
.
props
.
args
.
color
;
if
(
!
/^
[
0-9a-f
]{3,6}
$/i
.
test
(
color
))
color
=
'
f00
'
;
style
=
`color: #
${
color
}
;`
;
style
=
`color: #
${
color
}
;
overflow-wrap: anywhere;
`
;
break
;
}
case
'
bg
'
:
{
let
color
=
token
.
props
.
args
.
color
;
if
(
!
/^
[
0-9a-f
]{3,6}
$/i
.
test
(
color
))
color
=
'
f00
'
;
style
=
`background-color: #
${
color
}
;`
;
style
=
`background-color: #
${
color
}
;
overflow-wrap: anywhere;
`
;
break
;
}
case
'
ruby
'
:
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment