Skip to content

Commit de162d7

Browse files
authored
Fix default catalog landing page display of nodes (#1925)
* Fix default catalog landing page display of nodes * Keep node name widths to maximum defaults
1 parent 45171a9 commit de162d7

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

datajunction-ui/src/app/components/NamespaceHeader.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ export default function NamespaceHeader({
4545
setExistingPR(null);
4646

4747
const fetchData = async () => {
48+
if (!namespace) {
49+
if (onGitConfigLoaded) onGitConfigLoaded(null);
50+
setGitConfigLoading(false);
51+
return;
52+
}
4853
if (namespace) {
4954
// Fetch deployment sources
5055
try {

datajunction-ui/src/app/pages/NamespacePage/index.jsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,14 @@ export function NamespacePage() {
620620
state.nodes.length > 0 ? (
621621
state.nodes.map(node => (
622622
<tr key={node.name}>
623-
<td>
623+
<td
624+
style={{
625+
maxWidth: '300px',
626+
overflow: 'hidden',
627+
whiteSpace: 'nowrap',
628+
textOverflow: 'ellipsis',
629+
}}
630+
>
624631
<a href={'/nodes/' + node.name} className="link-table">
625632
{isBranchNamespace && node.name.startsWith(namespace + '.')
626633
? node.name.slice(namespace.length + 1)
@@ -633,7 +640,14 @@ export function NamespacePage() {
633640
{node.currentVersion}
634641
</span>
635642
</td>
636-
<td>
643+
<td
644+
style={{
645+
maxWidth: '250px',
646+
overflow: 'hidden',
647+
whiteSpace: 'nowrap',
648+
textOverflow: 'ellipsis',
649+
}}
650+
>
637651
<a href={'/nodes/' + node.name} className="link-table">
638652
{node.type !== 'source' ? node.current.displayName : ''}
639653
</a>

0 commit comments

Comments
 (0)