Attempt #3 on ticket #181, input boxes are not as wide, buttons

same size and hopefully the stair casing is fixed. (picture 3 in
ticket #181)
This commit is contained in:
Anders Betnér 2006-07-05 22:00:53 +00:00
parent 3ba6992c2b
commit 32817b0826
2 changed files with 10 additions and 0 deletions

View File

@ -48,6 +48,9 @@ select {
#buttons { #buttons {
float: left; float: left;
} }
#buttons input {
width: 7em;
}
</style> </style>
<h1>Configuration</span></h1><span id="toggle_basic_advanced"></span> <h1>Configuration</span></h1><span id="toggle_basic_advanced"></span>
<div id="config_not_writable_warning" class="message_div" style="display: none;">Your config file is not writable, you can not change anything using this webpage</div> <div id="config_not_writable_warning" class="message_div" style="display: none;">Your config file is not writable, you can not change anything using this webpage</div>

View File

@ -298,6 +298,7 @@ var Config ={
if (!Cookie.getVar('show_advanced_config') && item.advanced) { if (!Cookie.getVar('show_advanced_config') && item.advanced) {
frag.style.display = 'none'; frag.style.display = 'none';
} }
frag.style.clear = 'both';
return frag; return frag;
}, },
_addItemEvent: function (e) { _addItemEvent: function (e) {
@ -402,6 +403,12 @@ var BuildElement = {
label.appendChild(document.createTextNode(displayName)); label.appendChild(document.createTextNode(displayName));
frag.appendChild(label); frag.appendChild(label);
var input; var input;
if (/KHTML/.test(navigator.userAgent) && (80 == size)) {
// Safari & Konqueror input fields gets to long
// This is a runner up in the ugly bug fix contest
size = 60;
}
if (Config.isWritable) { if (Config.isWritable) {
input = Builder.node('input',{id: id,name: name,className: 'text', input = Builder.node('input',{id: id,name: name,className: 'text',
value: value,size: size}); value: value,size: size});