mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
remove auto-text-size package
This commit is contained in:
@@ -81,7 +81,6 @@
|
|||||||
"@wavesurfer/react": "^1.0.11",
|
"@wavesurfer/react": "^1.0.11",
|
||||||
"@xhayper/discord-rpc": "^1.3.0",
|
"@xhayper/discord-rpc": "^1.3.0",
|
||||||
"audiomotion-analyzer": "^4.5.1",
|
"audiomotion-analyzer": "^4.5.1",
|
||||||
"auto-text-size": "^0.2.3",
|
|
||||||
"axios": "^1.13.2",
|
"axios": "^1.13.2",
|
||||||
"cheerio": "^1.1.2",
|
"cheerio": "^1.1.2",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
|
|||||||
Generated
-12
@@ -71,9 +71,6 @@ importers:
|
|||||||
audiomotion-analyzer:
|
audiomotion-analyzer:
|
||||||
specifier: ^4.5.1
|
specifier: ^4.5.1
|
||||||
version: 4.5.1
|
version: 4.5.1
|
||||||
auto-text-size:
|
|
||||||
specifier: ^0.2.3
|
|
||||||
version: 0.2.3(react@19.1.0)
|
|
||||||
axios:
|
axios:
|
||||||
specifier: ^1.13.2
|
specifier: ^1.13.2
|
||||||
version: 1.13.2
|
version: 1.13.2
|
||||||
@@ -2253,11 +2250,6 @@ packages:
|
|||||||
audiomotion-analyzer@4.5.1:
|
audiomotion-analyzer@4.5.1:
|
||||||
resolution: {integrity: sha512-vEO5HgivsZa9ZhQDItSMjXD5+qsRu6rAEKzAmrg7HbOFeM4tPVrE/wxiRREWxzbGpuH9NZT4Ze+v95G1w/rRAA==}
|
resolution: {integrity: sha512-vEO5HgivsZa9ZhQDItSMjXD5+qsRu6rAEKzAmrg7HbOFeM4tPVrE/wxiRREWxzbGpuH9NZT4Ze+v95G1w/rRAA==}
|
||||||
|
|
||||||
auto-text-size@0.2.3:
|
|
||||||
resolution: {integrity: sha512-OycpKD8n5jxnNaOiAJoNr3BkBsxRzHHhFQk15rgsOYq+O9lsMSPLbVN7ZibxjTwT7bl6Y5jawOtZJxRWaoxdcQ==}
|
|
||||||
peerDependencies:
|
|
||||||
react: '*'
|
|
||||||
|
|
||||||
available-typed-arrays@1.0.7:
|
available-typed-arrays@1.0.7:
|
||||||
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
|
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
|
||||||
engines: {node: '>= 0.4'}
|
engines: {node: '>= 0.4'}
|
||||||
@@ -7970,10 +7962,6 @@ snapshots:
|
|||||||
|
|
||||||
audiomotion-analyzer@4.5.1: {}
|
audiomotion-analyzer@4.5.1: {}
|
||||||
|
|
||||||
auto-text-size@0.2.3(react@19.1.0):
|
|
||||||
dependencies:
|
|
||||||
react: 19.1.0
|
|
||||||
|
|
||||||
available-typed-arrays@1.0.7:
|
available-typed-arrays@1.0.7:
|
||||||
dependencies:
|
dependencies:
|
||||||
possible-typed-array-names: 1.1.0
|
possible-typed-array-names: 1.1.0
|
||||||
|
|||||||
@@ -98,19 +98,9 @@
|
|||||||
|
|
||||||
.title {
|
.title {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center !important;
|
margin: var(--theme-spacing-sm) 0;
|
||||||
height: 150px;
|
font-size: clamp(2rem, 3.5dvw, 3.25rem);
|
||||||
margin: 0;
|
|
||||||
overflow: hidden;
|
|
||||||
-webkit-line-clamp: 2;
|
|
||||||
line-clamp: 2;
|
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
color: var(--theme-colors-foreground);
|
|
||||||
-webkit-box-orient: vertical;
|
|
||||||
|
|
||||||
@container (min-width: $mantine-breakpoint-sm) {
|
|
||||||
height: 90px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.library-header-menu {
|
.library-header-menu {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { closeAllModals, openModal } from '@mantine/modals';
|
import { closeAllModals, openModal } from '@mantine/modals';
|
||||||
import { AutoTextSize } from 'auto-text-size';
|
|
||||||
import { forwardRef, ReactNode, Ref, useCallback, useState } from 'react';
|
import { forwardRef, ReactNode, Ref, useCallback, useState } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Link } from 'react-router';
|
import { Link } from 'react-router';
|
||||||
@@ -120,11 +119,7 @@ export const LibraryHeader = forwardRef(
|
|||||||
>
|
>
|
||||||
{itemTypeString()}
|
{itemTypeString()}
|
||||||
</Text>
|
</Text>
|
||||||
<h1 className={styles.title}>
|
<h1 className={styles.title}>{title}</h1>
|
||||||
<AutoTextSize maxFontSizePx={72} mode="box">
|
|
||||||
{title}
|
|
||||||
</AutoTextSize>
|
|
||||||
</h1>
|
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user