start adding tooltips to config options

This commit is contained in:
Zlatin Balevsky
2020-03-28 19:19:35 +00:00
parent adce4b1574
commit 424922f2e3
2 changed files with 18 additions and 1 deletions

View File

@ -614,4 +614,17 @@ textarea.copypaste {
.tooltip:hover .tooltiptext {
visibility: visible;
}
.configuration-section table tr td {
overflow: auto;
}
.configuration-section .tooltip {
border-bottom: none;
}
.configuration-section .tooltip .tooltiptext {
white-space: pre-wrap;
padding : 5x 0 5x 5x;
}

View File

@ -42,7 +42,11 @@ Exception error = (Exception) application.getAttribute("MWConfigError");
<h3><%=Util._t("Search")%></h3>
<table>
<tr>
<td><%=Util._t("Search in comments")%></td>
<td>
<div class="tooltip"><%=Util._t("Search in comments")%>
<span class="tooltiptext"><%=Util._t("When searching the network, should MuWire search only file names or in the comments too?")%></span>
</div>
</td>
<td><p align="right"><input type="checkbox" <% if (core.getMuOptions().getSearchComments()) out.write("checked"); %> name="searchComments" value="true"></p></td>
</tr>
<tr>