Roundcube Community Forum

Themes & Styling => Theme Releases => Topic started by: Simon89 on September 04, 2007, 12:07:01 PM

Title: login fields too long...
Post by: Simon89 on September 04, 2007, 12:07:01 PM
Is there a way to change the lenght of the login fields "username" and "password"? I need smaller fields...
Title: Re: login fields too long...
Post by: SKaero on September 04, 2007, 04:11:36 PM
Thats not right! Can you post the source of the page?
Title: Re: login fields too long...
Post by: toby86 on September 07, 2007, 07:45:50 AM
I have the same problem - but only on my personal laptop.
On any other PC I tested so far I haven't had any problems.

=> http://webmail.mediaversal.de
Title: Re: login fields too long...
Post by: xyanide on September 09, 2007, 12:29:13 PM
Quote from: toby86
I have the same problem - but only on my personal laptop.
On any other PC I tested so far I haven't had any problems.

=> http://webmail.mediaversal.de

Looks fine on my desktop (Opera 9.23, 19" 1280 x 1024).


- Xyanide
Title: Re: login fields too long...
Post by: surfsurf on September 10, 2007, 01:18:35 AM
Also looks fine over here.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
Title: Re: login fields too long...
Post by: Rudy on October 08, 2007, 11:51:47 AM
It's weird. I have the same problem. On my pc everything looks fine but on my friend's pc the login page looks like Simon89's screenshot. It doesn't matter what browser I'm using (IE7, FF, Opera), it's always the same problem. Both computers are running MS Win XP Prof SP2.
Title: Re: login fields too long...
Post by: youds on October 09, 2007, 07:42:26 AM
Add style="width:150px" to the tags and that will solve the problem.
Title: Re: login fields too long...
Post by: youds on October 09, 2007, 08:09:32 AM
Seems you have to edit the main program files to change the tags on output

Code: [Select]
<script type=&quot;text/javascript&quot;>
<!--\\
//fix login box without editing the program files
window.onload = function () {
console.log('log');
oUsername = document.getElementById('rcmloginuser');
oPassword = document.getElementById('rcmloginpwd');
oUsername.style.width = '150px;'
oPassword.style.width = '150px';
}
-->
</script>

Add that to the document instead.
Title: Re: login fields too long...
Post by: Rudy on October 11, 2007, 04:28:39 PM
Sorry that it took me so long to answer but thishas been a very busy week for me. Anyway... I added your Javascript to my login.html template and it seems to work flawlessly. Thank you very much! :)

-Rudy
Title: Re: login fields too long...
Post by: Rudy on February 20, 2008, 04:33:01 PM
Actually it wasn't quite "flawless". There was a typo (') in oUsername:
Code: [Select]
<script type=&quot;text/javascript&quot;>
<!--\\
//fix login box without editing the program files
window.onload = function () {
console.log('log');
oUsername = document.getElementById('rcmloginuser');
oPassword = document.getElementById('rcmloginpwd');
oUsername.style.width = '180px';
oPassword.style.width = '180px';
}
-->
</script>