Skip to content

Commit

Permalink
Fix visual issue for table column comments in dark theme
Browse files Browse the repository at this point in the history
Removes custom CSS for column comments.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Nov 30, 2023
1 parent 803fbc1 commit b9fbad6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 33 deletions.
6 changes: 0 additions & 6 deletions public/themes/bootstrap/scss/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,6 @@ td .icon {
width: 100%;
}

.tblcomment {
font-size: 70%;
font-weight: normal;
color: #009;
}

.error {
border: 1px solid maroon !important;
margin-left: 2px;
Expand Down
6 changes: 0 additions & 6 deletions public/themes/metro/scss/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -502,12 +502,6 @@ img.lightbulb {
width: 100%;
}

.tblcomment {
font-size: 70%;
font-weight: normal;
color: #009;
}

/* disabled text */
.disabled {
color: #666;
Expand Down
6 changes: 0 additions & 6 deletions public/themes/original/scss/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,6 @@ label.error {
width: 100%;
}

.tblcomment {
font-size: 70%;
font-weight: normal;
color: #009;
}

/* disabled text */

.disabled {
Expand Down
6 changes: 0 additions & 6 deletions public/themes/pmahomme/scss/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,6 @@ img.lightbulb {
width: 100%;
}

.tblcomment {
font-size: 70%;
font-weight: normal;
color: #009;
}

// disabled text
.disabled {
color: #666;
Expand Down
18 changes: 9 additions & 9 deletions resources/templates/display/results/comment_for_row.twig
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{% if comments_map[table_name] is defined
and comments_map[table_name][column_name] is defined %}
<br><span class="tblcomment" title="{{ comments_map[table_name][column_name] }}">
{% if comments_map[table_name][column_name]|length > limit_chars %}
{{ comments_map[table_name][column_name]|slice(0, limit_chars) }}…
{% else %}
{{ comments_map[table_name][column_name] }}
{% endif %}
</span>
{% if comments_map[table_name] is defined and comments_map[table_name][column_name] is defined %}
<br>
<small class="text-body-secondary" title="{{ comments_map[table_name][column_name] }}">
{% if comments_map[table_name][column_name]|length > limit_chars %}
{{ comments_map[table_name][column_name]|slice(0, limit_chars) }}…
{% else %}
{{ comments_map[table_name][column_name] }}
{% endif %}
</small>
{% endif %}

0 comments on commit b9fbad6

Please sign in to comment.