/*
 * CloudBeaver - Cloud Database Manager
 * Copyright (C) 2020-2024 DBeaver Corp and others
 *
 * Licensed under the Apache License, Version 2.0.
 * you may not use this file except in compliance with the License.
 */
.treeNodeControl.dragging {
  opacity: 0.6;
}

.treeNodeControl.editing {
  &::before {
    display: none;
  }

  & .treeNodeName {
    padding: 0;
    overflow: visible;
    margin-left: 2px;
  }
}

.treeNodeControl:hover > .portal,
.treeNodeControl[aria-selected='true'] > .portal,
.portal:focus-within {
  visibility: visible;
}

.treeNodeName {
  height: 100%;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal {
  position: relative;
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: 8px !important;
  visibility: hidden;
}

.nameBox {
  overflow: hidden;
  text-overflow: ellipsis;
}
