Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
flexi_style
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
flexi_style
Commits
c75640bf
Commit
c75640bf
authored
7 months ago
by
Anoop Singh
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3455131
: Choosing "Inline" for labels in manage display, has no effect
parent
ff4e9912
No related branches found
Branches containing commit
Tags
7.x-1.4
Tags containing commit
1 merge request
!4
Issue #3455131: Choosing "Inline" for labels in manage display, has no effect
Pipeline
#215434
passed
7 months ago
Stage: build
Stage: test
Stage: deploy
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
css/base/formating.css
+25
-0
25 additions, 0 deletions
css/base/formating.css
css/component/field.css
+17
-0
17 additions, 0 deletions
css/component/field.css
templates/field/field.html.twig
+11
-3
11 additions, 3 deletions
templates/field/field.html.twig
with
53 additions
and
3 deletions
css/base/formating.css
+
25
−
0
View file @
c75640bf
...
...
@@ -202,3 +202,28 @@ strong {
font-size
:
24px
;
}
}
.align-items-start
{
align-items
:
start
;
}
.align-items-center
{
align-items
:
center
;
}
.align-items-end
{
align-items
:
end
;
}
.justify-content-start
{
justify-content
:
start
;
}
.justify-content-center
{
justify-content
:
center
;
}
.justify-content-end
{
justify-content
:
end
;
}
.justify-content-sa
{
justify-content
:
space-around
;
}
.justify-content-sb
{
justify-content
:
space-between
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
css/component/field.css
+
17
−
0
View file @
c75640bf
...
...
@@ -7,3 +7,20 @@
.flex-user-profile
.field
{
margin-bottom
:
10px
;
}
.field--label-inline
.field-title
,
.field--label-inline
.field
{
float
:
left
;
/*LTR*/
}
.field--label-inline
.field-title
,
.field--label-inline
>
.field__item
,
.field--label-inline
.field
{
padding-right
:
0.5em
;
}
[
dir
=
"rtl"
]
.field--label-inline
.field-title
,
[
dir
=
"rtl"
]
.field--label-inline
.field
{
padding-left
:
0.5em
;
padding-right
:
0
;
}
.field--label-inline
.field-title
::after
{
content
:
':'
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
templates/field/field.html.twig
+
11
−
3
View file @
c75640bf
...
...
@@ -38,6 +38,14 @@
* @ingroup themeable
*/
#}
{%
set
classes
=
[
'field'
,
'field--name-'
~
field_name
|
clean_class
,
'field--type-'
~
field_type
|
clean_class
,
'field--label-'
~
label_display
,
]
%}
{%
set
title_classes
=
[
'field-title'
,
...
...
@@ -47,18 +55,18 @@
{%
if
label_hidden
%}
{%
if
multiple
%}
<div
{{
attributes.addClass
(
'field'
)
}}
>
<div
{{
attributes.addClass
(
classes
,
'field'
)
}}
>
{%
for
item
in
items
%}
<div
{{
item.attributes.addClass
(
'field-item'
)
}}
>
{{
item.content
}}
</div>
{%
endfor
%}
</div>
{%
else
%}
{%
for
item
in
items
%}
<div
{{
attributes.addClass
(
'field'
)
}}
>
{{
item.content
}}
</div>
<div
{{
attributes.addClass
(
classes
,
'field'
)
}}
>
{{
item.content
}}
</div>
{%
endfor
%}
{%
endif
%}
{%
else
%}
<div
{{
attributes.addClass
(
'field'
)
}}
>
<div
{{
attributes.addClass
(
classes
,
'field'
)
}}
>
<div
{{
title_attributes.addClass
(
title_classes
)
}}
>
{{
label
}}
</div>
{%
if
multiple
%}
<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