Fix node text appearance

This commit is contained in:
futpib 2018-11-22 02:43:53 +03:00
parent b595301520
commit 1b6caddb85
2 changed files with 15 additions and 5 deletions

View File

@ -497,8 +497,13 @@ const SinkText = ({ dgo, pai, state, selected }) => r(React.Fragment, [
title: pai.name,
}, pai.description),
]),
!selected && r(VolumeThumbnail, { pai, state }),
selected && r(VolumeControls, { pai, state }),
r.div({
className: 'node-main',
}, [
r(selected ? VolumeControls : VolumeThumbnail, { pai, state }),
]),
r(RemoteTunnelInfo, { pai }),
r(DebugText, { dgo, pai, state }),
]);
@ -519,8 +524,13 @@ const SourceText = ({ dgo, pai, state, selected }) => r(React.Fragment, [
title: pai.name,
}, pai.description),
]),
!selected && r(VolumeThumbnail, { pai, state }),
selected && r(VolumeControls, { pai, state }),
r.div({
className: 'node-main',
}, [
r(selected ? VolumeControls : VolumeThumbnail, { pai, state }),
]),
r(RemoteTunnelInfo, { pai }),
r(DebugText, { dgo, pai, state }),
]);

View File

@ -302,7 +302,7 @@ div[tabindex="-1"]:focus {
flex-direction: column;
}
.node-text > .volume-thumbnail {
.node-text > .node-main {
flex-grow: 1;
}