Skip to content

Commit

Permalink
Merge pull request mrliptontea#104 from mrliptontea/resolve-tooltip-p…
Browse files Browse the repository at this point in the history
…ositioning-issues

Resolve tooltip positioning issues
  • Loading branch information
Grzegorz Rajchman authored Apr 9, 2019
2 parents 15368c6 + e68f8a1 commit f60eac8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ If you need to customize styles for [Redmine Backlogs][redmine_backlogs] remembe

## Changelog

Latest changes (master):

* Fixed #101, #102: tooltip positioning

v2.1.1 (2019-03-23):

* Fixed sidebar toggler style when fixed layout is enabled
Expand Down
4 changes: 4 additions & 0 deletions src/sass/components/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ table {
td {
padding: $table-condensed-cell-padding $table-cell-padding;
}

p {
margin: 0;
}
}

ul,
Expand Down
13 changes: 6 additions & 7 deletions src/sass/components/_gantt.scss
Original file line number Diff line number Diff line change
Expand Up @@ -137,17 +137,16 @@
&:hover {
z-index: 25;

.tip {
span.tip {
display: block;
}
}

.tip {
span.tip {
@include nice-shadow(3);
display: none;
position: absolute;
top: 9px;
left: 24px;
top: 12px;
width: 270px;
padding: $padding-base-vertical;
border: $tooltip-border-width solid $tooltip-border;
Expand All @@ -158,9 +157,9 @@
}

@if $sidebar-position == "left" {
tr > td:last-child & {
.tip {
right: 2px;
.list & {
span.tip {
right: 0;
left: auto;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/sass/components/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ table.list {
padding: $table-cell-padding;
border: 2px solid $table-border-color;
border-width: $table-list-header-border;
background-color: $body-bg;
color: $gray-700;
vertical-align: bottom;

Expand Down
2 changes: 1 addition & 1 deletion stylesheets/application.css

Large diffs are not rendered by default.

0 comments on commit f60eac8

Please sign in to comment.