mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
fix field content showing under editor buttons
This commit is contained in:
parent
331239de05
commit
51a0e5fa4b
2 changed files with 6 additions and 3 deletions
|
@ -29,7 +29,10 @@ pics = ("jpg", "jpeg", "png", "tif", "tiff", "gif", "svg", "webp")
|
||||||
audio = ("wav", "mp3", "ogg", "flac", "mp4", "swf", "mov", "mpeg", "mkv", "m4a", "3gp", "spx", "oga")
|
audio = ("wav", "mp3", "ogg", "flac", "mp4", "swf", "mov", "mpeg", "mkv", "m4a", "3gp", "spx", "oga")
|
||||||
|
|
||||||
_html = """
|
_html = """
|
||||||
<style>html { background: %s; }</style>
|
<style>
|
||||||
|
html { background: %s; }
|
||||||
|
#topbuts { background: %s; }
|
||||||
|
</style>
|
||||||
<div id="topbuts">%s</div>
|
<div id="topbuts">%s</div>
|
||||||
<div id="fields"></div>
|
<div id="fields"></div>
|
||||||
<div id="dupes" style="display:none;"><a href="#" onclick="pycmd('dupes');return false;">%s</a></div>
|
<div id="dupes" style="display:none;"><a href="#" onclick="pycmd('dupes');return false;">%s</a></div>
|
||||||
|
@ -102,7 +105,7 @@ class Editor:
|
||||||
# then load page
|
# then load page
|
||||||
html = self.web.bundledCSS("editor.css") + _html
|
html = self.web.bundledCSS("editor.css") + _html
|
||||||
self.web.stdHtml(html % (
|
self.web.stdHtml(html % (
|
||||||
bgcol,
|
bgcol, bgcol,
|
||||||
topbuts,
|
topbuts,
|
||||||
_("Show Duplicates")), head=self.mw.baseHTML(),
|
_("Show Duplicates")), head=self.mw.baseHTML(),
|
||||||
js=["jquery.js", "editor.js"])
|
js=["jquery.js", "editor.js"])
|
||||||
|
|
|
@ -33,7 +33,7 @@ body {
|
||||||
top: 0;
|
top: 0;
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.topbut {
|
.topbut {
|
||||||
|
|
Loading…
Reference in a new issue