Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
savoirfairelinux
jami-web
Commits
4371a50d
Commit
4371a50d
authored
3 months ago
by
Léopold Chappuis
Committed by
Adrien Béraud
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
welcome-page: adjust padding
Change-Id: I07a39b3d00c748f595babf354cde1dd0155443fb
parent
354c57a0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/src/components/EllipsisMiddle.tsx
+3
-2
3 additions, 2 deletions
client/src/components/EllipsisMiddle.tsx
client/src/components/WelcomePage.tsx
+4
-4
4 additions, 4 deletions
client/src/components/WelcomePage.tsx
with
7 additions
and
6 deletions
client/src/components/EllipsisMiddle.tsx
+
3
−
2
View file @
4371a50d
...
...
@@ -21,15 +21,16 @@ import Box from '@mui/material/Box'
interface
EllipsisMiddleProps
{
text
:
string
centerItem
?:
boolean
padding
?:
string
}
const
EllipsisMiddle
=
({
text
,
centerItem
}:
EllipsisMiddleProps
)
=>
{
const
EllipsisMiddle
=
({
text
,
centerItem
,
padding
}:
EllipsisMiddleProps
)
=>
{
if
(
!
text
)
{
console
.
error
(
'
text is undefined
'
)
return
}
if
(
text
.
length
<
12
)
{
return
<
span
>
{
text
}
</
span
>
return
<
span
style
=
{
{
padding
:
padding
}
}
>
{
text
}
</
span
>
}
const
startFixedChars
=
5
...
...
This diff is collapsed.
Click to expand it.
client/src/components/WelcomePage.tsx
+
4
−
4
View file @
4371a50d
...
...
@@ -190,16 +190,16 @@ export default function WelcomePage() {
sx
=
{
{
...
middleBoxStyle
,
maxWidth
:
isMedium
?
'
220px
'
:
'
unset
'
,
width
:
displayedInfo
===
account
.
getRegisteredName
()
?
'
auto
'
:
'
400px
'
,
width
:
'
auto
'
,
}
}
borderRadius
=
{
'
5px 2px 2px 5px
'
}
>
<
JamiIdIcon
sx
=
{
{
marginBottom
:
'
-4px
'
,
marginRight
:
'
5px
'
}
}
/>
<
Box
maxWidth
=
{
isMedium
?
'
170px
'
:
'
unset
'
}
>
<
EllipsisMiddle
text
=
{
displayedInfo
}
centerItem
=
{
true
}
/>
<
Box
maxWidth
=
{
isMedium
?
'
170px
'
:
'
unset
'
}
sx
=
{
{
mb
:
'
2px
'
}
}
>
<
EllipsisMiddle
text
=
{
displayedInfo
}
centerItem
=
{
true
}
padding
=
"6px"
/>
</
Box
>
</
Box
>
<
Box
sx
=
{
{
...
middleBoxStyle
,
gap
:
'
8px
'
,
width
:
'
5
0
px
'
}
}
borderRadius
=
{
'
2px 5px 5px 2px
'
}
width
=
{
'
6%
'
}
>
<
Box
sx
=
{
{
...
middleBoxStyle
,
gap
:
'
8px
'
,
width
:
'
6
5px
'
}
}
borderRadius
=
{
'
2px 5px 5px 2px
'
}
width
=
{
'
6%
'
}
>
<
Tooltip
title
=
{
t
(
'
copy_to_clipboard
'
)
}
>
<
span
style
=
{
{
width
:
'
20px
'
,
height
:
'
20px
'
}
}
>
<
TwoSheetsIcon
...
...
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