Skip to content

Commit

Permalink
fix look of personal global credentials settings
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
szaimen committed Dec 5, 2023
1 parent 6c52242 commit cafa805
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/files_external/css/settings.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/files_external/css/settings.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions apps/files_external/css/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,9 @@
.nav-icon-external-storage {
background-image: var(--icon-external-dark);
}

.global_credentials__personal {
margin: 10px auto;
text-align: center;
width: min(400px, 100vw);
}
5 changes: 4 additions & 1 deletion apps/files_external/templates/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ function writeParameterInput($parameter, $options, $classes = []) {

<div class="followupsection">
<form autocomplete="false" action="#"
id="global_credentials" method="post">
id="global_credentials" method="post"
class="<?php if (isset($_['visibilityType']) && $_['visibilityType'] === BackendService::VISIBILITY_PERSONAL) {
print_unescaped("global_credentials__personal");
} ?>">
<h2><?php p($l->t('Global credentials')); ?></h2>
<p class="settings-hint"><?php p($l->t('Global credentials can be used to authenticate with multiple external storages that have the same credentials.')); ?></p>
<input type="text" name="username"
Expand Down

0 comments on commit cafa805

Please sign in to comment.