Fix trusted server input field

Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
This commit is contained in:
julia.kirschenheuter 2023-10-20 11:17:29 +02:00
parent 8d907d8089
commit 0af42db2c7
5 changed files with 18 additions and 5 deletions

View File

@ -28,5 +28,13 @@
}
#ocFederationAddServer #serverUrl {
width: 300px;
width: 270px;
}
.serverUrl-block {
max-width: 310px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}

View File

@ -45,8 +45,8 @@
$btnAddServer.on('click', function() {
$btnAddServer.addClass('hidden');
$wrapper.find(".serverUrl").removeClass('hidden');
$inpServerUrl
.removeClass('hidden')
.focus();
});

View File

@ -31,9 +31,14 @@ style('federation', 'settings-admin')
</ul>
<p id="ocFederationAddServer">
<button id="ocFederationAddServerButton" class=""><?php p($l->t('+ Add trusted server')); ?></button>
<input id="serverUrl" class="hidden" type="text" value="" placeholder="<?php p($l->t('Trusted server')); ?>" name="server_url"/>
<button id="ocFederationSubmit" class="hidden"><?php p($l->t('Add')); ?></button>
<span class="msg"></span>
<div class="serverUrl hidden">
<div class="serverUrl-block">
<label for="serverUrl"><?php p($l->t('Trusted server')); ?></label>
<input id="serverUrl" type="text" value="" placeholder="<?php p($l->t('Trusted server')); ?>" name="server_url"/>
<button id="ocFederationSubmit" class="hidden"><?php p($l->t('Add')); ?></button>
</div>
<span class="msg"></span>
</div>
</p>
</div>

Binary file not shown.