diff --git a/gradio/static/css/style.css b/gradio/static/css/style.css index 162d59aa91..6ec546561f 100644 --- a/gradio/static/css/style.css +++ b/gradio/static/css/style.css @@ -15,8 +15,7 @@ button, input[type="submit"], input[type="reset"], input[type="text"], input[typ border-radius: 0; } nav, #panels, #share_row { - margin-left: 60px; - margin-right: 60px; + margin-left: 30px; } nav { text-align: center; @@ -63,6 +62,9 @@ button.secondary { color: black; background-color: #F6F6F6; } +#featured_history { + margin: 4px 30px; +} #featured_table { border-collapse: collapse; border: solid 2px #EEEEEE; @@ -73,8 +75,8 @@ button.secondary { padding: 4px; text-align: center; cursor: pointer; - width: 250px; - max-width: 250px; + width: 650px; + max-width: 650px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; @@ -87,5 +89,4 @@ button.secondary { } #featured_history img { height: 60px; - width: 100px; } diff --git a/gradio/static/js/interfaces/input/sketchpad.js b/gradio/static/js/interfaces/input/sketchpad.js index b0ddab732c..77c9cb8349 100644 --- a/gradio/static/js/interfaces/input/sketchpad.js +++ b/gradio/static/js/interfaces/input/sketchpad.js @@ -58,6 +58,7 @@ const sketchpad_input = { var img = new Image; let dimension = this.target.find(".canvas_holder canvas").width(); img.onload = function(){ + ctx.clearRect(0,0,dimension,dimension); ctx.drawImage(img,0,0,dimension,dimension); }; img.src = data; diff --git a/gradio/static/js/load_history.js b/gradio/static/js/load_history.js new file mode 100644 index 0000000000..d6acbf234b --- /dev/null +++ b/gradio/static/js/load_history.js @@ -0,0 +1,22 @@ +history_count = 0; +entry_history = []; + +function add_history(entry) { + $("#featured_table").append(` +