Skip to content

Commit

Permalink
add overflow style
Browse files Browse the repository at this point in the history
  • Loading branch information
HSunboy committed Sep 25, 2023
1 parent 452f03b commit 12c999f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
9 changes: 7 additions & 2 deletions src/page/Workspace/SideBar/ResourceTree/Datasource/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,20 @@
.ant-tree-list {
.ant-tree-treenode {
.ant-tree-node-content-wrapper {
.ant-dropdown-trigger {
overflow: hidden;
text-overflow: ellipsis;
}
&:hover {
:local(.actions) {
display: block;
display: flex;
justify-content: center;
}
}
:local(.actions) {
display: none;
flex: 0;
flex-basis: 20px;
flex-basis: 25px;
}
display: flex;
.ant-tree-iconEle {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export default forwardRef(function DatasourceTree(props, ref) {
<Popover
showArrow={false}
overlayClassName={styles.connectionPopover}
placement="rightBottom"
placement="right"
content={
<ConnectionPopover
connection={datasourceMap.get(toNumber(node.key))}
Expand Down
7 changes: 7 additions & 0 deletions src/page/Workspace/SideBar/ResourceTree/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
padding: 0px 12px;
.label {
font-weight: 600;
flex-shrink: 1;
overflow: hidden;
text-overflow: ellipsis;
}
.titleAction {
flex-shrink: 0;
flex-grow: 0;
}
}
.search {
Expand Down
2 changes: 1 addition & 1 deletion src/page/Workspace/SideBar/ResourceTree/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const ResourceTree: React.FC<IProps> = function ({
<div className={styles.resourceTree}>
<div className={styles.title}>
<span className={styles.label}>{title}</span>
<span>
<span className={styles.titleAction}>
<Action.Group size={0} ellipsisIcon="vertical">
<Action.Link
key={'reload'}
Expand Down

0 comments on commit 12c999f

Please sign in to comment.