diff --git a/.changeset/fix-avatar-sm-icon-size.md b/.changeset/fix-avatar-sm-icon-size.md new file mode 100644 index 000000000..51007aae4 --- /dev/null +++ b/.changeset/fix-avatar-sm-icon-size.md @@ -0,0 +1,5 @@ +--- +"@tabler/core": patch +--- + +Fixed the oversized icon in `.avatar-sm` by lowering its `icon-size` in `$avatar-sizes` to `1.25rem`. diff --git a/core/scss/_variables.scss b/core/scss/_variables.scss index 4ed90a11b..ba8722313 100644 --- a/core/scss/_variables.scss +++ b/core/scss/_variables.scss @@ -822,7 +822,7 @@ $avatar-sizes: ( 'sm': ( size: 2rem, font-size: $h5-font-size, - icon-size: 1.5rem, + icon-size: 1.25rem, status-size: 0.5rem, brand-size: 1rem, ), diff --git a/preview/pages/project-analytics.astro b/preview/pages/project-analytics.astro index d5655364a..791853ffc 100644 --- a/preview/pages/project-analytics.astro +++ b/preview/pages/project-analytics.astro @@ -9,15 +9,16 @@ import CardActions from '@ui/CardActions.astro' import CardBody from '@ui/CardBody.astro' import CardHeader from '@ui/CardHeader.astro' import CardTitle from '@ui/CardTitle.astro' -import ChartSparkline from '@ui/ChartSparkline.astro' import NavSegmented from '@ui/NavSegmented.astro' import Progress from '@ui/Progress.astro' +import Subheader from '@ui/Subheader.astro' +import Trending from '@ui/Trending.astro' const stats = [ - { id: 'requests', label: 'Requests', value: '8.61M', delta: '+8.2%', color: 'success', data: '21,24,22,27,29,26,31' }, - { id: 'visitors', label: 'Unique visitors', value: '142K', delta: '+3.1%', color: 'success', data: '12,14,13,15,14,16,17' }, - { id: 'errors', label: 'Error rate', value: '0.42%', delta: '+0.09 pp', color: 'danger', data: '3,2,4,3,5,6,7' }, - { id: 'latency', label: 'p95 latency', value: '212 ms', delta: '-14 ms', color: 'success', data: '9,8,8,7,7,6,6' }, + { id: 'requests', label: 'Requests', value: '8.61M', trend: 8.2, unit: '%', chart: 'new-clients' }, + { id: 'visitors', label: 'Unique visitors', value: '142K', trend: 3.1, unit: '%', chart: 'active-users' }, + { id: 'errors', label: 'Error rate', value: '0.42%', trend: 0.09, unit: ' pp', color: 'red', chart: 'revenue-bg' }, + { id: 'latency', label: 'p95 latency', value: '212 ms', trend: -14, unit: ' ms', color: 'green', chart: 'development-activity' }, ] const routes = [ @@ -50,12 +51,14 @@ const statusCodes = [