Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Iseard
Kudos-Website
Commits
a585ff13
Commit
a585ff13
authored
Mar 14, 2021
by
Michael Iseard
Browse files
Make intro text display:block on mobile
parent
d5962395
Changes
1
Show whitespace changes
Inline
Side-by-side
app/helpers.php
View file @
a585ff13
...
...
@@ -156,7 +156,7 @@ function filter_handlebar( $string ) {
$list
=
explode
(
','
,
str_replace
(
' '
,
''
,
$matches
[
1
][
0
]
)
);
$first
=
$list
[
0
];
$out
[
'string'
]
=
preg_replace
(
$regex
,
'<
span
id="intro-variable" class="
list underline swap-in
">'
.
$first
.
"</
span
>"
,
'<
div
id="intro-variable" class="
d-block d-sm-inline-block list underline swap-in" style="width: max-content;
">'
.
$first
.
"</
div
>"
,
$string
);
$out
[
'list'
]
=
json_encode
(
$list
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment