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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
3fb8d101
Commit
3fb8d101
authored
May 15, 2018
by
Paul Slaughter
Committed by
Annabel Gray
May 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug with long strings in issue boards
parent
728441a4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
app/assets/stylesheets/framework/mixins.scss
app/assets/stylesheets/framework/mixins.scss
+12
-0
app/assets/stylesheets/pages/boards.scss
app/assets/stylesheets/pages/boards.scss
+5
-3
changelogs/unreleased/43367-fix-board-long-strings.yml
changelogs/unreleased/43367-fix-board-long-strings.yml
+5
-0
No files found.
app/assets/stylesheets/framework/mixins.scss
View file @
3fb8d101
...
@@ -210,3 +210,15 @@
...
@@ -210,3 +210,15 @@
margin-left
:
-
$size
;
margin-left
:
-
$size
;
}
}
}
}
/*
* Mixin that fixes wrapping issues with long strings (e.g. URLs)
*
* Note: the width needs to be set for it to work in Firefox
*/
@mixin
overflow-break-word
{
overflow-wrap
:
break-word
;
word-wrap
:
break-word
;
word-break
:
break-word
;
max-width
:
100%
;
}
app/assets/stylesheets/pages/boards.scss
View file @
3fb8d101
...
@@ -284,6 +284,9 @@
...
@@ -284,6 +284,9 @@
box-shadow
:
0
1px
2px
$issue-boards-card-shadow
;
box-shadow
:
0
1px
2px
$issue-boards-card-shadow
;
list-style
:
none
;
list-style
:
none
;
// as a fallback, hide overflow content so that dragging and dropping still works
overflow
:
hidden
;
&
:not
(
:last-child
)
{
&
:not
(
:last-child
)
{
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
...
@@ -310,14 +313,13 @@
...
@@ -310,14 +313,13 @@
}
}
.card-title
{
.card-title
{
@include
overflow-break-word
();
margin
:
0
30px
0
0
;
margin
:
0
30px
0
0
;
font-size
:
1em
;
font-size
:
1em
;
line-height
:
inherit
;
line-height
:
inherit
;
a
{
a
{
color
:
$gl-text-color
;
color
:
$gl-text-color
;
word-wrap
:
break-word
;
word-break
:
break-word
;
margin-right
:
2px
;
margin-right
:
2px
;
}
}
}
}
...
@@ -462,8 +464,8 @@
...
@@ -462,8 +464,8 @@
}
}
.issuable-header-text
{
.issuable-header-text
{
@include
overflow-break-word
();
padding-right
:
35px
;
padding-right
:
35px
;
word-break
:
break-word
;
>
strong
{
>
strong
{
font-weight
:
$gl-font-weight-bold
;
font-weight
:
$gl-font-weight-bold
;
...
...
changelogs/unreleased/43367-fix-board-long-strings.yml
0 → 100644
View file @
3fb8d101
---
title
:
Fix issue board bug with long strings in titles
merge_request
:
18924
author
:
type
:
fixed
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