Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c74c05ef
Commit
c74c05ef
authored
Dec 09, 2020
by
Jiaan Louw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add percentage width utility classes
This also sets the Name column to the correct width.
parent
543b7f5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
app/assets/javascripts/admin/users/components/users_table.vue
...assets/javascripts/admin/users/components/users_table.vue
+2
-2
app/assets/stylesheets/utilities.scss
app/assets/stylesheets/utilities.scss
+13
-0
No files found.
app/assets/javascripts/admin/users/components/users_table.vue
View file @
c74c05ef
...
...
@@ -4,7 +4,7 @@ import { __ } from '~/locale';
const
DEFAULT_TH_CLASSES
=
'
gl-bg-transparent! gl-border-b-solid! gl-border-b-gray-100! gl-p-5! gl-border-b-1!
'
;
const
thWidthClass
=
width
=>
`
mw-
${
width
}
${
DEFAULT_TH_CLASSES
}
`
;
const
thWidthClass
=
width
=>
`
gl-w-
${
width
}
p
${
DEFAULT_TH_CLASSES
}
`
;
export
default
{
components
:
{
...
...
@@ -24,7 +24,7 @@ export default {
{
key
:
'
name
'
,
label
:
__
(
'
Name
'
),
thClass
:
thWidthClass
(
2
0
),
thClass
:
thWidthClass
(
4
0
),
},
{
key
:
'
projectsCount
'
,
...
...
app/assets/stylesheets/utilities.scss
View file @
c74c05ef
...
...
@@ -143,3 +143,16 @@
flex-direction
:
column
!
important
;
}
}
// These will be moved to @gitlab/ui in https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1091
.gl-w-10p
{
width
:
10%
;
}
.gl-w-20p
{
width
:
20%
;
}
.gl-w-40p
{
width
:
40%
;
}
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