Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ckanext-odsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Open-Data
ckanext-odsh
Commits
03d54194
Commit
03d54194
authored
6 years ago
by
anonymous
Browse files
Options
Downloads
Patches
Plain Diff
fix label truncation
parent
49ba09cb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
ckanext/odsh/public/odsh.css
+14
-12
14 additions, 12 deletions
ckanext/odsh/public/odsh.css
ckanext/odsh/templates/snippets/facet_list.html
+1
-1
1 addition, 1 deletion
ckanext/odsh/templates/snippets/facet_list.html
with
15 additions
and
13 deletions
ckanext/odsh/public/odsh.css
+
14
−
12
View file @
03d54194
...
@@ -145,10 +145,6 @@ input[type=radio], input[type=checkbox] {
...
@@ -145,10 +145,6 @@ input[type=radio], input[type=checkbox] {
top
:
0px
;
top
:
0px
;
}
}
.nav-simple
>
li
{
border-bottom
:
0px
;
padding
:
15px
0px
15px
0px
;
}
@media
(
min-width
:
768px
){
@media
(
min-width
:
768px
){
[
role
=
main
],
.main
{
[
role
=
main
],
.main
{
...
@@ -234,9 +230,20 @@ input[type=radio], input[type=checkbox] {
...
@@ -234,9 +230,20 @@ input[type=radio], input[type=checkbox] {
color
:
black
;
color
:
black
;
}
}
.nav-simple
>
li
{
border-bottom
:
0px
;
padding
:
15px
0px
0px
0px
;
width
:
193px
;
white-space
:
nowrap
;
display
:
flex
;
justify-content
:
space-between
;
}
.nav-item
.facet_label
{
.nav-item
.facet_label
{
display
:
block
;
flex
:
1
;
float
:
left
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
.nav-item
.facet_label
a
{
.nav-item
.facet_label
a
{
...
@@ -244,16 +251,11 @@ input[type=radio], input[type=checkbox] {
...
@@ -244,16 +251,11 @@ input[type=radio], input[type=checkbox] {
}
}
.nav-item
.facet_count
{
.nav-item
.facet_count
{
display
:
block
;
display
:
inline-block
;
float
:
right
;
background-color
:
white
;
background-color
:
white
;
padding
:
0px
2px
0px
2px
;
padding
:
0px
2px
0px
2px
;
}
}
.filter-checkbox
{
}
/* checkbox customize trick, see: https://stackoverflow.com/questions/24322599/css-why-cannot-change-checkbox-color-whatever-i-do */
/* checkbox customize trick, see: https://stackoverflow.com/questions/24322599/css-why-cannot-change-checkbox-color-whatever-i-do */
.facet_label
input
[
type
=
checkbox
]
{
.facet_label
input
[
type
=
checkbox
]
{
...
...
This diff is collapsed.
Click to expand it.
ckanext/odsh/templates/snippets/facet_list.html
+
1
−
1
View file @
03d54194
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<input
type=
"checkbox"
{%
if
item.active
%}
checked
{%
endif
%}
class=
"filter-checkbox"
id=
"check-{{ title.lower() }}-{{ loop.index }}"
/>
<input
type=
"checkbox"
{%
if
item.active
%}
checked
{%
endif
%}
class=
"filter-checkbox"
id=
"check-{{ title.lower() }}-{{ loop.index }}"
/>
<label
class=
"mylabel"
for=
"check-{{ title.lower() }}-{{ loop.index }}"
></label>
<label
class=
"mylabel"
for=
"check-{{ title.lower() }}-{{ loop.index }}"
></label>
<a
href=
"{{ href }}"
title=
"{{ label if label != label_truncated else '' }}"
>
<a
href=
"{{ href }}"
title=
"{{ label if label != label_truncated else '' }}"
>
<span>
{{ label
_truncated
}}
</span>
<span>
{{ label}}
</span>
</a>
</a>
</div>
</div>
<div
class=
"facet_count"
>
<div
class=
"facet_count"
>
...
...
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