Fix text wrapping issue for tags feature. #8192

This commit is contained in:
Aditya Toshniwal 2024-12-09 18:04:47 +05:30
parent c3a334f8df
commit 9e58717321
2 changed files with 3 additions and 10 deletions

View File

@ -51,15 +51,7 @@ export function menuSearch(param, props) {
const mainMenus = pgAdmin.Browser.MainMenus;
mainMenus.forEach((menu) => {
let subMenus = [];
if(menu.name == 'object') {
let selectedNode = pgAdmin.Browser.tree.selected();
if(selectedNode) {
subMenus = menu.getMenuItems();
}
} else {
subMenus = pgAdmin.Browser.all_menus_cache[menu.name];
}
const subMenus = menu.getMenuItems();
iterItem(Object.values(subMenus), getMenuName(menu));
});

View File

@ -167,7 +167,8 @@ export default function reactAspenOverride(theme) {
padding: '0px 4px',
borderRadius: theme.shape.borderRadius,
backgroundColor: 'color-mix(in srgb, color-mix(in srgb, var(--tag-color) 10%, #fff) 50%, transparent);',
lineHeight: 1.2
lineHeight: 1.2,
whiteSpace: 'nowrap'
},
i: {