Skip to content

Commit d9ac096

Browse files
committed
issue doxygen#11314 "Copy to clipboard" button broken with XHTML
1 parent 104c809 commit d9ac096

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

src/config.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4052,9 +4052,6 @@ UML notation for the relationships.
40524052
generated by \c dot. For an explanation of the image formats see the section output formats
40534053
in the documentation of the \c dot tool
40544054
(<a href="https://www.graphviz.org/">Graphviz</a>).
4055-
\note If you choose \c svg you need to set
4056-
\ref cfg_html_file_extension "HTML_FILE_EXTENSION" to \c xhtml in order to make the SVG files
4057-
visible in IE 9+ (other browsers do not have this requirement).
40584055
]]>
40594056
</docs>
40604057
<value name='png'/>
@@ -4077,8 +4074,6 @@ UML notation for the relationships.
40774074
enable generation of interactive SVG images that allow zooming and panning.
40784075
<br>Note that this requires a modern browser other than Internet Explorer.
40794076
Tested and working are Firefox, Chrome, Safari, and Opera.
4080-
\note For IE 9+ you need to set \ref cfg_html_file_extension "HTML_FILE_EXTENSION" to \c xhtml in order
4081-
to make the SVG files visible. Older versions of IE do not have SVG support.
40824077
]]>
40834078
</docs>
40844079
</option>

templates/html/clipboard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ SOFTWARE.
2828
*/
2929

3030
let clipboard_title = "$copy_to_clipboard_text"
31-
let clipboard_icon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>`
32-
let clipboard_successIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>`
31+
let clipboard_icon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="#888" d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>`
32+
let clipboard_successIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>`
3333
let clipboard_successDuration = 1000
3434

3535
$(function() {

templates/html/doxygen.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,7 @@ pre.fragment {
336336
opacity: 0;
337337
position: absolute;
338338
display: inline;
339-
overflow: auto;
340-
fill: var(--fragment-foreground-color);
339+
overflow: hidden;
341340
justify-content: center;
342341
align-items: center;
343342
cursor: pointer;
@@ -349,7 +348,7 @@ pre.fragment {
349348
}
350349

351350
.fragment:hover .clipboard, .clipboard.success {
352-
opacity: .28;
351+
opacity: .4;
353352
}
354353

355354
.clipboard:hover, .clipboard.success {

0 commit comments

Comments
 (0)