Skip to content

Commit bfb0deb

Browse files
committed
Merge pull request #728 from pascalchevrel/723_buttons_hover
fix #723: Experiment buttons on hover in results view
2 parents 228916b + 7d3ecab commit bfb0deb

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

app/classes/Transvision/ShowResults.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ public static function resultsTable($search_object, $search_results, $page)
412412
<td dir='{$direction3}' lang='{$locale3}'>
413413
<span class='celltitle'>{$locale3}</span>
414414
<div class='string' id='{$clipboard_target_string2}'>{$target_string2}</div>
415-
<div dir='ltr' class='result_meta_link'>
415+
<div dir='ltr' class='result_meta_link invisible'>
416416
<a class='source_link' href='{$locale3_path}'>
417417
&lt;source&gt;
418418
</a>
@@ -430,16 +430,16 @@ public static function resultsTable($search_object, $search_results, $page)
430430
<tr class='{$component}'>
431431
<td>
432432
<span class='celltitle'>Entity</span>
433-
<a class='resultpermalink tag' id='{$anchor_name}' href='#{$anchor_name}' title='Permalink to this result'>link</a>
434-
<a class='l10n tag' href='/string/?entity={$key}&amp;repo={$current_repo}' title='List all translations for this entity'>l10n</a>
433+
<a class='resultpermalink tag invisible' id='{$anchor_name}' href='#{$anchor_name}' title='Permalink to this result'>link</a>
434+
<a class='l10n tag invisible' href='/string/?entity={$key}&amp;repo={$current_repo}' title='List all translations for this entity'>l10n</a>
435435
<a class='link_to_entity' href=\"/{$entity_link}\">{$result_entity}</a>
436436
</td>
437437
<td dir='{$direction1}' lang='{$locale1}'>
438438
<span class='celltitle'>{$locale1}</span>
439439
<div class='string'>
440440
{$source_string}
441441
</div>
442-
<div dir='ltr' class='result_meta_link'>
442+
<div dir='ltr' class='result_meta_link invisible'>
443443
<a class='source_link' href='{$locale1_path}'>
444444
&lt;source&gt;
445445
</a>
@@ -457,7 +457,7 @@ public static function resultsTable($search_object, $search_results, $page)
457457
<td dir='{$direction2}' lang='{$locale2}'>
458458
<span class='celltitle'>{$locale2}</span>
459459
<div class='string' id='{$clipboard_target_string}'>{$target_string}</div>
460-
<div dir='ltr' class='result_meta_link'>
460+
<div dir='ltr' class='result_meta_link invisible'>
461461
<a class='source_link' href='{$locale2_path}'>
462462
&lt;source&gt;
463463
</a>

web/style/transvision.css

+9
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,7 @@ fieldset {
11651165
z-index: 99;
11661166
}
11671167

1168+
<<<<<<< HEAD
11681169
/* Unlocalized words view */
11691170
#unlocalized_all fieldset#grpChkBox {
11701171
border: 1px solid #000;
@@ -1185,3 +1186,11 @@ fieldset {
11851186
#unlocalized_all #words tr :nth-child(1) ~ td {
11861187
display: none;
11871188
}
1189+
1190+
.invisible {
1191+
visibility: hidden;
1192+
}
1193+
1194+
tr:hover .invisible {
1195+
visibility: visible;
1196+
}

0 commit comments

Comments
 (0)