${HeaderPerformance}
diff --git a/src/controllers/dashboard/general.js b/src/controllers/dashboard/general.js
index 141a671a79..b131302de3 100644
--- a/src/controllers/dashboard/general.js
+++ b/src/controllers/dashboard/general.js
@@ -39,25 +39,17 @@ function onSubmit() {
config.LibraryScanFanoutConcurrency = parseInt(form.querySelector('#txtLibraryScanFanoutConcurrency').value || '0', 10);
config.ParallelImageEncodingLimit = parseInt(form.querySelector('#txtParallelImageEncodingLimit').value || '0', 10);
- ApiClient.updateServerConfiguration(config).then(function() {
- ApiClient.getNamedConfiguration(brandingConfigKey).then(function(brandingConfig) {
- brandingConfig.LoginDisclaimer = form.querySelector('#txtLoginDisclaimer').value;
- brandingConfig.CustomCss = form.querySelector('#txtCustomCss').value;
- brandingConfig.SplashscreenEnabled = form.querySelector('#chkSplashScreenAvailable').checked;
-
- ApiClient.updateNamedConfiguration(brandingConfigKey, brandingConfig).then(function () {
- Dashboard.processServerConfigurationUpdateResult();
- });
+ return ApiClient.updateServerConfiguration(config)
+ .then(() => {
+ Dashboard.processServerConfigurationUpdateResult();
+ }).catch(() => {
+ loading.hide();
+ alert(globalize.translate('ErrorDefault'));
});
- }, function () {
- alert(globalize.translate('ErrorDefault'));
- Dashboard.processServerConfigurationUpdateResult();
- });
});
return false;
}
-const brandingConfigKey = 'branding';
export default function (view) {
$('#btnSelectCachePath', view).on('click.selectDirectory', function () {
import('../../components/directorybrowser/directorybrowser').then(({ default: DirectoryBrowser }) => {
@@ -107,11 +99,6 @@ export default function (view) {
Promise.all([promiseConfig, promiseLanguageOptions, promiseSystemInfo]).then(function (responses) {
loadPage(view, responses[0], responses[1], responses[2]);
});
- ApiClient.getNamedConfiguration(brandingConfigKey).then(function (config) {
- view.querySelector('#txtLoginDisclaimer').value = config.LoginDisclaimer || '';
- view.querySelector('#txtCustomCss').value = config.CustomCss || '';
- view.querySelector('#chkSplashScreenAvailable').checked = config.SplashscreenEnabled === true;
- });
});
}
diff --git a/src/elements/emby-textarea/emby-textarea.scss b/src/elements/emby-textarea/emby-textarea.scss
index 0866664914..87b2c6d86f 100644
--- a/src/elements/emby-textarea/emby-textarea.scss
+++ b/src/elements/emby-textarea/emby-textarea.scss
@@ -6,7 +6,7 @@
/* Remove select styling */
/* Font size must the 16px or larger to prevent iOS page zoom on focus */
- font-size: inherit;
+ font-size: 110%;
/* General select styles: change as needed */
font-family: inherit;
@@ -19,6 +19,9 @@
outline: none !important;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
width: 100%;
+
+ /* Make the height at least as tall as inputs */
+ min-height: 2.5em;
}
.emby-textarea::-moz-focus-inner {
diff --git a/src/styles/fonts.scss b/src/styles/fonts.scss
index 88bf8578ad..5496ef6b41 100644
--- a/src/styles/fonts.scss
+++ b/src/styles/fonts.scss
@@ -22,6 +22,24 @@ h3 {
@include font(400, 1.17em);
}
+.textarea-mono {
+ font-family:
+ ui-monospace,
+ Menlo,
+ Monaco,
+ "Cascadia Mono",
+ "Segoe UI Mono",
+ "Roboto Mono",
+ "Oxygen Mono",
+ "Ubuntu Mono",
+ "Source Code Pro",
+ "Fira Mono",
+ "Droid Sans Mono",
+ "Consolas",
+ "Courier New",
+ monospace !important;
+}
+
.layout-tv {
/* Per WebOS and Tizen guidelines, fonts must be 20px minimum.
This takes the 16px baseline and multiplies it by 1.25 to get 20px. */