fix(ui): fix link in entity header flashing infinitely (#14820)

This commit is contained in:
purnimagarg1 2025-09-22 21:49:00 +05:30 committed by GitHub
parent 9778c10b1b
commit b654d93962
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 8 deletions

View File

@ -66,13 +66,11 @@ export const Row = styled.div`
`;
export const LeftColumn = styled.div`
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: start;
align-items: center;
`;
export const RightColumn = styled.div`
@ -145,8 +143,8 @@ export const DefaultEntityHeader = ({
displayProperties={displayProperties}
/>
)}
<EntityBackButton />
<LeftColumn>
<EntityBackButton />
{(loading && <EntityTitleLoadingSection />) || (
<>
<TitleWrapper>

View File

@ -17,9 +17,7 @@ const HiddenContainer = styled.div`
pointer-events: none;
`;
const FitContainer = styled.div`
width: fit-content;
`;
const FitContainer = styled.div``;
export interface OverflowListItem {
key: string;
@ -89,7 +87,7 @@ export default function OverflowList<Item extends OverflowListItem>({
const newVisibleItems: Item[] = [firstItem];
const newHiddenItems: Item[] = [];
// compute available width considering that the first item and container with hidden items shlould be rendered to
// compute available width considering that the first item and container with hidden items should be rendered too
const availableWidth =
containerWidth - firstItemWidth - finalGap - (renderedHiddenItemsWidth ?? 0) - finalGap;