mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-22 15:13:42 -06:00
Fix text wrapping issue for tags feature. #8192
This commit is contained in:
parent
c3a334f8df
commit
9e58717321
@ -51,15 +51,7 @@ export function menuSearch(param, props) {
|
|||||||
|
|
||||||
const mainMenus = pgAdmin.Browser.MainMenus;
|
const mainMenus = pgAdmin.Browser.MainMenus;
|
||||||
mainMenus.forEach((menu) => {
|
mainMenus.forEach((menu) => {
|
||||||
let subMenus = [];
|
const subMenus = menu.getMenuItems();
|
||||||
if(menu.name == 'object') {
|
|
||||||
let selectedNode = pgAdmin.Browser.tree.selected();
|
|
||||||
if(selectedNode) {
|
|
||||||
subMenus = menu.getMenuItems();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
subMenus = pgAdmin.Browser.all_menus_cache[menu.name];
|
|
||||||
}
|
|
||||||
iterItem(Object.values(subMenus), getMenuName(menu));
|
iterItem(Object.values(subMenus), getMenuName(menu));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -167,7 +167,8 @@ export default function reactAspenOverride(theme) {
|
|||||||
padding: '0px 4px',
|
padding: '0px 4px',
|
||||||
borderRadius: theme.shape.borderRadius,
|
borderRadius: theme.shape.borderRadius,
|
||||||
backgroundColor: 'color-mix(in srgb, color-mix(in srgb, var(--tag-color) 10%, #fff) 50%, transparent);',
|
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: {
|
i: {
|
||||||
|
Loading…
Reference in New Issue
Block a user