@giteeteam/apps-team-components 1.0.26 → 1.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ export interface IPriceTagProps {
5
5
  edition: 'ee' | 'ce' | 'demo';
6
6
  expired?: boolean;
7
7
  }
8
- export declare const containerStyle = "\n display: inline-flex;\n justify-content: center;\n align-items: center;\n";
8
+ export declare const containerStyle = "\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n";
9
9
  export declare const textStyle = "\n flex: 1;\n width: 0;\n";
10
- export declare const tagStyle = "\n height: 18px;\n padding: 0 4px;\n margin-left: 8px;\n font-size: 12px;\n font-weight: 500;\n line-height: 18px;\n color: #fff;\n background: linear-gradient(230deg, #66dbff 0%, #3683ff 100%);\n border-radius: 5px 0;\n";
10
+ export declare const tagStyle = "\n height: 18px;\n padding: 0 4px;\n margin-left: 8px;\n font-size: 12px;\n font-weight: 500;\n line-height: 18px;\n color: #fff;\n background: linear-gradient(230deg, #66dbff 0%, #3683ff 100%);\n border-radius: 5px 0;\n white-space: nowrap;\n";
11
11
  export declare const PriceTag: React.FC<IPriceTagProps>;
@@ -5,8 +5,8 @@ import { i18n } from '../../lib/i18n';
5
5
  import SimpleOverflowToolTip from './overflow-tooltip/SimpleOverflowToolTip';
6
6
  export const containerStyle = `
7
7
  display: inline-flex;
8
- justify-content: center;
9
8
  align-items: center;
9
+ max-width: 100%;
10
10
  `;
11
11
  export const textStyle = `
12
12
  flex: 1;
@@ -22,6 +22,7 @@ export const tagStyle = `
22
22
  color: #fff;
23
23
  background: linear-gradient(230deg, #66dbff 0%, #3683ff 100%);
24
24
  border-radius: 5px 0;
25
+ white-space: nowrap;
25
26
  `;
26
27
  export const PriceTag = ({ text, className, edition, expired }) => {
27
28
  const isTagVisible = useMemo(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-team-components",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Gitee team components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",