Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
66dd670a
Commit
66dd670a
authored
Dec 12, 2017
by
Leopoldthecoder
Committed by
杨奕
Dec 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Table: replace sorting arrow icons with borders to avoid overlap
parent
e64ba965
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
packages/table/src/table-header.js
packages/table/src/table-header.js
+2
-2
packages/theme-chalk/src/table.scss
packages/theme-chalk/src/table.scss
+7
-6
No files found.
packages/table/src/table-header.js
View file @
66dd670a
...
@@ -119,9 +119,9 @@ export default {
...
@@ -119,9 +119,9 @@ export default {
{
{
column
.
sortable
column
.
sortable
?
<
span
class
=
"
caret-wrapper
"
on
-
click
=
{
(
$event
)
=>
this
.
handleSortClick
(
$event
,
column
)
}
>
?
<
span
class
=
"
caret-wrapper
"
on
-
click
=
{
(
$event
)
=>
this
.
handleSortClick
(
$event
,
column
)
}
>
<
i
class
=
"
sort-caret ascending
el-icon-caret-top
"
on
-
click
=
{
(
$event
)
=>
this
.
handleSortClick
(
$event
,
column
,
'
ascending
'
)
}
>
<
i
class
=
"
sort-caret ascending
"
on
-
click
=
{
(
$event
)
=>
this
.
handleSortClick
(
$event
,
column
,
'
ascending
'
)
}
>
<
/i
>
<
/i
>
<
i
class
=
"
sort-caret descending
el-icon-caret-bottom
"
on
-
click
=
{
(
$event
)
=>
this
.
handleSortClick
(
$event
,
column
,
'
descending
'
)
}
>
<
i
class
=
"
sort-caret descending
"
on
-
click
=
{
(
$event
)
=>
this
.
handleSortClick
(
$event
,
column
,
'
descending
'
)
}
>
<
/i
>
<
/i
>
<
/span
>
<
/span
>
:
''
:
''
...
...
packages/theme-chalk/src/table.scss
View file @
66dd670a
...
@@ -438,27 +438,28 @@
...
@@ -438,27 +438,28 @@
}
}
.sort-caret
{
.sort-caret
{
color
:
$--color-text-placeholder
;
width
:
0
;
width
:
14px
;
height
:
0
;
overflow
:
hidden
;
border
:
solid
5px
transparent
;
font-size
:
15px
;
position
:
absolute
;
position
:
absolute
;
&
.ascending
{
&
.ascending
{
border-bottom-color
:
$--color-text-placeholder
;
top
:
5px
;
top
:
5px
;
}
}
&
.descending
{
&
.descending
{
border-top-color
:
$--color-text-placeholder
;
bottom
:
7px
;
bottom
:
7px
;
}
}
}
}
.ascending
.sort-caret.ascending
{
.ascending
.sort-caret.ascending
{
color
:
$--color-primary
;
border-bottom-
color
:
$--color-primary
;
}
}
.descending
.sort-caret.descending
{
.descending
.sort-caret.descending
{
color
:
$--color-primary
;
border-top-
color
:
$--color-primary
;
}
}
.hidden-columns
{
.hidden-columns
{
...
...
Write
Preview
Markdown
is supported
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