Skip to content

Commit

Permalink
Fix geosolutions-it#10776 Review the open properties icon and the ord…
Browse files Browse the repository at this point in the history
…er of item in the viewer navbar
  • Loading branch information
allyoucanmap committed Feb 20, 2025
1 parent d4883a9 commit 864d1ac
Show file tree
Hide file tree
Showing 15 changed files with 853 additions and 765 deletions.
8 changes: 4 additions & 4 deletions web/client/plugins/ResourcesCatalog/BrandNavbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ function BrandNavbar({
variant={variant}
menuItemComponent={BrandNavbarMenuItem}
items={[
...leftMenuItems,
...leftMenuItems.map((menuItem, idx) => ({ ...menuItem, position: idx + 1 })),
...pluginLeftMenuItems
]}
].sort((a, b) => a.position - b.position)}
/>
<Menu
centerChildrenVertically
Expand All @@ -190,9 +190,9 @@ function BrandNavbar({
size={size}
menuItemComponent={BrandNavbarMenuItem}
items={[
...rightMenuItems,
...rightMenuItems.map((menuItem, idx) => ({ ...menuItem, position: idx + 1 })),
...pluginRightMenuItems
]}
].sort((a, b) => a.position - b.position)}
/>
</FlexBox>
</>
Expand Down
2 changes: 1 addition & 1 deletion web/client/plugins/ResourcesCatalog/DeleteResource.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default createPlugin('DeleteResource', {
Component: DeleteResourcePlugin
},
BrandNavbar: {
target: 'right-menu',
target: 'left-menu',
position: 4,
priority: 3,
Component: DeleteResourcePlugin
Expand Down
17 changes: 9 additions & 8 deletions web/client/plugins/ResourcesCatalog/ResourceDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,7 @@ function BrandNavbarDetailsButton({
};
const { title } = getResourceTypesInfo(resource || selectedResource);
return (
<FlexBox centerChildrenVertically gap="xs">
<Text ellipsis>
{title}
</Text>
<FlexBox component="li" centerChildrenVertically gap="xs">
<ButtonWithTooltip
active={show}
square
Expand All @@ -365,8 +362,11 @@ function BrandNavbarDetailsButton({
}}
borderTransparent
>
<Icon glyph="file-code-o" />
<Icon glyph="details" type="glyphicon" />
</ButtonWithTooltip>
<Text ellipsis>
{title}
</Text>
</FlexBox>
);
}
Expand All @@ -376,10 +376,10 @@ export default createPlugin('ResourceDetails', {
containers: {
BrandNavbar: {
priority: 1,
target: 'right-menu',
target: 'left-menu',
Component: resourceDetailsConnect(BrandNavbarDetailsButton),
doNotHide: true,
position: 1
position: 5
},
ResourcesGrid: {
priority: 2,
Expand All @@ -404,7 +404,8 @@ export default createPlugin('ResourceDetails', {
return (
<Component
onClick={handleClick}
glyph="file-code-o"
glyph="details"
iconType="glyphicon"
square
labelId="resourcesCatalog.viewResourceProperties"
/>
Expand Down
2 changes: 1 addition & 1 deletion web/client/plugins/ResourcesCatalog/Save.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export default createPlugin('Save', {
component: ConnectedPendingStatePrompt,
containers: {
BrandNavbar: {
target: 'right-menu',
target: 'left-menu',
position: 2,
priority: 3,
Component: SavePlugin,
Expand Down
2 changes: 1 addition & 1 deletion web/client/plugins/ResourcesCatalog/SaveAs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default createPlugin('SaveAs', {
component: () => null,
containers: {
BrandNavbar: {
target: 'right-menu',
target: 'left-menu',
position: 3,
priority: 3,
Component: SaveAsPlugin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ const ResourcesMenu = forwardRef(({
onClick={handleToggleCardLayoutStyle}
square
>
<Icon glyph={cardLayoutStyle === 'grid' ? 'list' : 'th'} />
<Icon glyph={cardLayoutStyle === 'grid' ? 'th-list' : 'th'} type="glyphicon"/>
</Button>}
{orderAlign === 'right' ? orderButtonNode : null}
</FlexBox>
Expand Down
2 changes: 1 addition & 1 deletion web/client/plugins/tocitemssettings/defaultSettingsTabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default ({ showFeatureInfoTab = true, loadedPlugins, items, onToggleStyle
id: 'fields',
titleId: 'layerProperties.fields.title',
tooltipId: 'layerProperties.fields.tooltip',
glyph: 'th-list',
glyph: 'list',
visible: isLayerNode(props) && hasFields(props?.element),
Component: Fields
},
Expand Down
Loading

0 comments on commit 864d1ac

Please sign in to comment.