From afaf131c72b3d2ab09963b8114ee1700aab50bd0 Mon Sep 17 00:00:00 2001 From: Anton Dyudin Date: Fri, 24 Oct 2014 13:08:19 -0700 Subject: [PATCH] Offset input Conflicts: urb/zod/main/app/terminal/hymn/script.js --- main/app/terminal/hymn/script.js | 5 ++--- main/app/terminal/hymn/style.css | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/main/app/terminal/hymn/script.js b/main/app/terminal/hymn/script.js index 74d7486eb..8f50498df 100644 --- a/main/app/terminal/hymn/script.js +++ b/main/app/terminal/hymn/script.js @@ -35,7 +35,7 @@ $(function() { if(e.shiftKey) return true v = prom.val().replace(/\xa0/g, ' ') $(cont).append($('').html(prem.innerHTML), - $('').text(v)) + $('
').text(v)) jpok('line', v) hist.unshift(v) @@ -90,8 +90,7 @@ $(function() { $(cont).append($('
').text(lom)) else { $(cont).append($('').text(lom.prompt + '> '), - $('').text(lom.task), - $('
')) + $('
').text(lom.task)) } } window.scrollTo(0,document.body.scrollHeight) diff --git a/main/app/terminal/hymn/style.css b/main/app/terminal/hymn/style.css index 4b6c67e70..32a0a9567 100644 --- a/main/app/terminal/hymn/style.css +++ b/main/app/terminal/hymn/style.css @@ -26,9 +26,11 @@ button { background-color: #fff; padding: 1rem; } -#prom-cont { +#prom-cont, +.prom { display: block; position:relative; + left: 1rem; } textarea, #prom-size {