Fixed tooltip positionning & error display

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-03-05 17:37:05 +01:00
parent 955c2ee1a7
commit 4e6043fd6b
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
3 changed files with 5 additions and 3 deletions

View File

@ -38,10 +38,11 @@
font-weight: normal;
}
.newFileMenu .error, #fileList .error {
.newFileMenu .error,
.newFileMenu .error + .icon-confirm,
#fileList .error {
color: $color-error;
border-color: $color-error;
box-shadow: 0 0 6px #f8b9b7;
}
/* FILE TABLE */

View File

@ -157,7 +157,7 @@
}
} catch (error) {
$input.attr('title', error);
$input.tooltip({placement: 'right', trigger: 'manual'});
$input.tooltip({placement: 'right', trigger: 'manual', 'container': '.newFileMenu'});
$input.tooltip('fixTitle');
$input.tooltip('show');
$input.addClass('error');

View File

@ -222,6 +222,7 @@ input {
border-left-color: transparent !important;
border-radius: 0 $border-radius $border-radius 0 !important;
background-clip: padding-box; /* Avoid background under border */
background-color: $color-main-background !important;
}
/* only show confirm borders if input is not focused */
&:not(:active):not(:hover):not(:focus){