Skip to content

Commit

Permalink
fix: 图标大小问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yxh01132861 committed Jan 8, 2024
1 parent 274c0d2 commit 483f461
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from 'react';
export const CLS_PREFIX = 'li-analysis-time-line-panel';

export const TimeAxisSvg = () => (
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentcolor">
<svg width="1em" height="1em" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentcolor">
<path d="M3.33317 4.66732H4.6665V11.334H3.33317V4.66732ZM0.666504 6.66732H1.99984V9.33398H0.666504V6.66732ZM5.99984 1.33398H7.33317V13.334H5.99984V1.33398ZM8.6665 2.66732H9.99984V14.6673H8.6665V2.66732ZM11.3332 4.66732H12.6665V11.334H11.3332V4.66732ZM13.9998 6.66732H15.3332V9.33398H13.9998V6.66732Z" />
</svg>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

export const ICON = () => {
return (
<svg className="l7-iconfont" aria-hidden="true" fill="currentColor">
<svg className="l7-iconfont" aria-hidden="true" fill="currentColor" style={{ width: '1em', height: '1em' }}>
<use href="#l7-icon-export-picture" />
</svg>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

export const ICON = () => {
return (
<svg className="l7-iconfont" fill="currentColor" aria-hidden="true">
<svg className="l7-iconfont" fill="currentColor" aria-hidden="true" style={{ width: '1em', height: '1em' }}>
<use href="#l7-icon-fullscreen" />
</svg>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

export const ICON = () => {
return (
<svg className="l7-iconfont" fill="currentColor" aria-hidden="true">
<svg className="l7-iconfont" fill="currentColor" aria-hidden="true" style={{ width: '1em', height: '1em' }}>
<use href="#l7-icon-reposition" />
</svg>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const POPOVER_PLACEMENT = new Map<string | undefined, string>([

export const ICON = () => {
return (
<svg className="l7-iconfont" fill="currentColor" aria-hidden="true">
<svg className="l7-iconfont" fill="currentColor" aria-hidden="true" style={{ width: '1em', height: '1em' }}>
<use href="#l7-icon-color" />
</svg>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../../theme/index.less';
@import url('../../../theme/index.less');

.@{prefix}-add-widgets-panel {
position: relative;
Expand Down Expand Up @@ -35,11 +35,12 @@
display: flex;
align-items: center;
padding: 10px;

&__img {
margin-right: 10px;
font-size: 40px;

svg {
width: 40px;
height: 40px;
color: @primary-color-1;
}
}
Expand Down Expand Up @@ -98,8 +99,8 @@
}

&-item:hover {
box-shadow: 0 5px 12px 4px rgba(0, 0, 0, 0.09), 0 3px 6px 0 rgba(0, 0, 0, 0.12),
0 1px 2px -2px rgba(0, 0, 0, 0.16);
box-shadow: 0 5px 12px 4px rgb(0 0 0 / 9%), 0 3px 6px 0 rgb(0 0 0 / 12%),
0 1px 2px -2px rgb(0 0 0 / 16%);
}
}
}

0 comments on commit 483f461

Please sign in to comment.