Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
339
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
23
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
TransFem.org
Sharkey
Commits
259be258
Commit
259be258
authored
1 year ago
by
syuilo
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of
https://github.com/misskey-dev/misskey
into develop
parents
db7fb1c6
2d5bb40a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/frontend/src/components/global/MkCondensedLine.vue
+8
-1
8 additions, 1 deletion
packages/frontend/src/components/global/MkCondensedLine.vue
with
8 additions
and
1 deletion
packages/frontend/src/components/global/MkCondensedLine.vue
+
8
−
1
View file @
259be258
...
...
@@ -13,13 +13,20 @@ interface Props {
const
contentSymbol
=
Symbol
();
const
observer
=
new
ResizeObserver
((
entries
)
=>
{
const
results
:
{
container
:
HTMLSpanElement
;
transform
:
string
;
}[]
=
[];
for
(
const
entry
of
entries
)
{
const
content
=
(
entry
.
target
[
contentSymbol
]
?
entry
.
target
:
entry
.
target
.
firstElementChild
)
as
HTMLSpanElement
;
const
props
:
Required
<
Props
>
=
content
[
contentSymbol
];
const
container
=
content
.
parentElement
as
HTMLSpanElement
;
const
contentWidth
=
content
.
getBoundingClientRect
().
width
;
const
containerWidth
=
container
.
getBoundingClientRect
().
width
;
container
.
style
.
transform
=
`scaleX(
${
Math
.
max
(
props
.
minScale
,
Math
.
min
(
1
,
containerWidth
/
contentWidth
))}
)`
;
results
.
push
({
container
,
transform
:
`scaleX(
${
Math
.
max
(
props
.
minScale
,
Math
.
min
(
1
,
containerWidth
/
contentWidth
))}
)`
});
}
for
(
const
result
of
results
)
{
result
.
container
.
style
.
transform
=
result
.
transform
;
}
});
</
script
>
...
...
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