mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 15:33:23 +01:00
Et2VfsPath: Make sure there's enough space for right scroll button
This commit is contained in:
parent
15eab33bfb
commit
a3835de82f
@ -68,6 +68,11 @@ export default css`
|
||||
min-width: 10em;
|
||||
}
|
||||
|
||||
.vfs-path__overflow .vfs-path__scroll {
|
||||
min-width: 8em;
|
||||
margin-right: 2em;
|
||||
}
|
||||
|
||||
.form-control-input sl-icon-button[name*="caret"] {
|
||||
display: none;
|
||||
position: absolute;
|
||||
|
@ -154,17 +154,14 @@ export class Et2VfsPath extends Et2InputWidget(LitElement)
|
||||
{
|
||||
return;
|
||||
}
|
||||
wrapper.parentElement.classList.remove("vfs-path__overflow");
|
||||
path.updateComplete.then(() =>
|
||||
{
|
||||
if(wrapper.clientWidth < scroll.scrollWidth)
|
||||
{
|
||||
// Too small
|
||||
wrapper.scrollLeft = scroll.scrollWidth - wrapper.clientWidth;
|
||||
wrapper.parentElement.classList.add("vfs-path__overflow");
|
||||
}
|
||||
else
|
||||
{
|
||||
wrapper.parentElement.classList.remove("vfs-path__overflow");
|
||||
wrapper.scrollLeft = scroll.scrollWidth - wrapper.clientWidth;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ input#filemanager-index_path {
|
||||
/* Let path have more space */
|
||||
#filemanager-index_filemanager-index-header_row {
|
||||
flex: 20 1 auto;
|
||||
min-width: 20em;
|
||||
min-width: 24em;
|
||||
}
|
||||
|
||||
#filemanager-index_nm_path {
|
||||
|
Loading…
Reference in New Issue
Block a user