Skip to content

Commit

Permalink
post build changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cphelefu committed Feb 19, 2024
1 parent 39c57eb commit b9f518e
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ function DataTable({ data, layerPath, tableHeight = 600 }: DataTableProps) {
component="img"
alt={feature.featureIcon.toDataURL().toString()}
src={feature.featureIcon.toDataURL().toString()}
className='layer-icon'
className="layer-icon"
/>
),
ZOOM: (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const getSxClasses = (theme: Theme) => ({
marginRight: 0,
wordBreak: 'break-word',
overflow: 'hidden',
textOverflow: 'ellipsis'
textOverflow: 'ellipsis',
},
boxContainerFeatureInfo: {
wordWrap: 'break-word',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function FeatureInfo({ features, currentFeatureIndex }: TypeFeatureInfoPr
>
{/* Left box - feature icon and feature name */}
<Box sx={sxClasses.flexBoxAlignCenter}>
<Box component="img" src={featureIconSrc} alt={nameFieldValue} className='layer-icon' />
<Box component="img" src={featureIconSrc} alt={nameFieldValue} className="layer-icon" />
<Typography sx={{ display: 'inline-block' }} component="div">
{nameFieldValue}
</Typography>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export function HoverTooltip(): JSX.Element {
visibility: showTooltip ? 'visible' : 'hidden',
}}
>
<Box component='img' className='layer-icon' alt={t('hovertooltip.alticon')!} src={tooltipIcon} />
<Box component="img" className="layer-icon" alt={t('hovertooltip.alticon')!} src={tooltipIcon} />
<Box sx={sxClasses.tooltipText}>{tooltipValue}</Box>
</Box>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/geoview-core/src/ui/style/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const opacity = {
export const geoViewColors: IGeoViewColors = {
white: '#FFFFFF',

bgColor: new GeoViewColorClass('#F1F2F5'),
bgColor: new GeoViewColorClass('#dadde5'),
primary: new GeoViewColorClass('#515BA5'),
secondary: new GeoViewColorClass('#1976d2'),
textColor: new GeoViewColorClass('#393939'),
Expand Down
48 changes: 23 additions & 25 deletions packages/geoview-core/src/ui/style/global-style-overrides.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
import { IGeoViewColors } from "./types";


export const globalStyleOverrides = (geoViewColors: IGeoViewColors) => ({

'.layer-icon': {
padding: 3,
borderRadius: 0,
border: '1px solid',
borderColor: geoViewColors.grey.dark[100],
boxShadow: 2,
background: geoViewColors.white,
objectFit: 'scale-down',
width: '35px',
height: '35px',
marginRight: '10px',
},

'a[href]': {
color: geoViewColors.primary.main,
'*:hover': {
color: geoViewColors.primary.dark[300],
}
}
})
import { IGeoViewColors } from './types';

export const globalStyleOverrides = (geoViewColors: IGeoViewColors) => ({
'.layer-icon': {
padding: 3,
borderRadius: 0,
border: '1px solid',
borderColor: geoViewColors.grey.dark[100],
boxShadow: 2,
background: geoViewColors.white,
objectFit: 'scale-down',
width: '35px',
height: '35px',
marginRight: '10px',
},

'a[href]': {
color: geoViewColors.primary.main,
'*:hover': {
color: geoViewColors.primary.dark[300],
},
},
});

0 comments on commit b9f518e

Please sign in to comment.