Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-jams
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
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-jams
Commits
7baf3052
Commit
7baf3052
authored
1 year ago
by
Léo Banno-Cloutier
Browse files
Options
Downloads
Patches
Plain Diff
CustomUiPreview: description and jami id side by side when no logo
Change-Id: I487d7185a69ee96e345183c540f8d81886e28b9d
parent
288896dc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jams-react-client/src/components/CustomUiPreview/CustomUiPreview.js
+12
-6
12 additions, 6 deletions
...-client/src/components/CustomUiPreview/CustomUiPreview.js
with
12 additions
and
6 deletions
jams-react-client/src/components/CustomUiPreview/CustomUiPreview.js
+
12
−
6
View file @
7baf3052
...
...
@@ -71,10 +71,13 @@ const styles = {
marginRight
:
"
1rem
"
,
},
welcomeCard
:
{
display
:
"
flex
"
,
flexDirection
:
(
props
)
=>
(
props
.
hasLogo
?
"
column
"
:
"
row
"
),
borderRadius
:
"
9px
"
,
backgroundColor
:
(
props
)
=>
(
props
.
isCompactDisplay
?
"
white
"
:
"
#f4f4f4
"
),
backgroundColor
:
(
props
)
=>
props
.
isCompactDisplay
?
"
transparent
"
:
"
#f4f4f4
"
,
padding
:
"
10px
"
,
width
:
"
50%
"
,
width
:
(
props
)
=>
(
props
.
hasLogo
?
"
50%
"
:
"
100%
"
)
,
},
title
:
{
margin
:
0
,
...
...
@@ -147,6 +150,7 @@ export default function CustomUiPreview({
isOldPreview
,
opacity
,
hasTitle
,
hasLogo
,
});
const
tip1
=
i18next
.
t
(
...
...
@@ -166,10 +170,12 @@ export default function CustomUiPreview({
<
img
src
=
{
logoUrl
}
alt
=
"
logo
"
className
=
{
classes
.
logo
}
><
/img
>
)
:
null
}
<
div
className
=
{
classes
.
welcomeCard
}
>
{
hasTitle
?
<
h4
className
=
{
classes
.
title
}
>
{
title
}
<
/h4> : null
}
{
hasDescription
?
(
<
p
className
=
{
classes
.
description
}
>
{
description
}
<
/p
>
)
:
null
}
<
div
>
{
hasTitle
?
<
h4
className
=
{
classes
.
title
}
>
{
title
}
<
/h4> : null
}
{
hasDescription
?
(
<
p
className
=
{
classes
.
description
}
>
{
description
}
<
/p
>
)
:
null
}
<
/div
>
<
JamiIdCard
isCompactDisplay
=
{
isCompactDisplay
}
/
>
<
/div
>
<
/div
>
...
...
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