diff --git a/public/assets/css/general.css b/public/assets/css/general.css index ba4551ed..2f846ad6 100644 --- a/public/assets/css/general.css +++ b/public/assets/css/general.css @@ -167,6 +167,7 @@ input:-webkit-autofill { } .label, .input-text, .select, .textarea { + margin: 0px; padding: 0.3em; outline: none; border: 0px; @@ -198,13 +199,16 @@ input:-webkit-autofill { .input-text--large, .select--large, .textarea--large { font-size: 2rem; border-left: 1px solid dodgerblue; - margin: 0.5rem; } .input-text--large:focus, .select--large:focus, .textarea--large:focus { border-left: 1px solid grey; } +.input-text--full-width, .textarea--full-width { + width: calc(100% - 0.6em); +} + .input-checkbox, .input-textarea { border: 1px solid grey; } diff --git a/public/assets/js/validationFunctions.js b/public/assets/js/validationFunctions.js index 09455364..d18c91a4 100644 --- a/public/assets/js/validationFunctions.js +++ b/public/assets/js/validationFunctions.js @@ -138,7 +138,7 @@ function checkChannelName(name){ const successDisplayElement = document.getElementById('input-success-channel-name'); const errorDisplayElement = document.getElementById('input-error-channel-name'); name = `@${name}`; - checkAvailability(name, successDisplayElement, errorDisplayElement, validateChannelName, isNameAvailable, 'Sorry, that Channel has been taken by another user', '/api/isChannelAvailable/'); + checkAvailability(name, successDisplayElement, errorDisplayElement, validateChannelName, isNameAvailable, 'Sorry, that Channel name has been taken by another user', '/api/isChannelAvailable/'); } // validation function which checks all aspects of the publish submission @@ -205,7 +205,7 @@ function validateNewChannelSubmission(channelName, password){ // 3. if all validation passes, check availability of the name isNameAvailable(channelName, '/api/isChannelAvailable/') // validate the availability .then(() => { - console.log('channel is avaliable'); + console.log('channel is available'); resolve(); }) .catch( error => { diff --git a/views/index.handlebars b/views/index.handlebars index 5003646b..d9f0f873 100644 --- a/views/index.handlebars +++ b/views/index.handlebars @@ -20,7 +20,7 @@