|
@@ -1032,24 +1032,24 @@ function ArchiveCard({
|
|
|
<Button
|
|
<Button
|
|
|
variant="primary"
|
|
variant="primary"
|
|
|
size="sm"
|
|
size="sm"
|
|
|
- className="flex-1 min-w-0"
|
|
|
|
|
|
|
+ className="flex-1 min-w-0 overflow-hidden"
|
|
|
onClick={() => setShowReprint(true)}
|
|
onClick={() => setShowReprint(true)}
|
|
|
disabled={!archive.file_path || !canModify('archives', 'reprint', archive.created_by_id)}
|
|
disabled={!archive.file_path || !canModify('archives', 'reprint', archive.created_by_id)}
|
|
|
title={!archive.file_path ? t('archives.card.noFileForReprint') : !canModify('archives', 'reprint', archive.created_by_id) ? t('archives.card.noPermissionReprint') : undefined}
|
|
title={!archive.file_path ? t('archives.card.noFileForReprint') : !canModify('archives', 'reprint', archive.created_by_id) ? t('archives.card.noPermissionReprint') : undefined}
|
|
|
>
|
|
>
|
|
|
<Printer className="w-3 h-3 flex-shrink-0" />
|
|
<Printer className="w-3 h-3 flex-shrink-0" />
|
|
|
- <span className="hidden sm:inline">{t('archives.card.reprint')}</span>
|
|
|
|
|
|
|
+ <span className="hidden sm:inline truncate">{t('archives.card.reprint')}</span>
|
|
|
</Button>
|
|
</Button>
|
|
|
<Button
|
|
<Button
|
|
|
variant="secondary"
|
|
variant="secondary"
|
|
|
size="sm"
|
|
size="sm"
|
|
|
- className="flex-1 min-w-0"
|
|
|
|
|
|
|
+ className="flex-1 min-w-0 overflow-hidden"
|
|
|
onClick={() => setShowSchedule(true)}
|
|
onClick={() => setShowSchedule(true)}
|
|
|
disabled={!archive.file_path || !hasPermission('queue:create')}
|
|
disabled={!archive.file_path || !hasPermission('queue:create')}
|
|
|
title={!archive.file_path ? t('archives.card.noFileForReprint') : !hasPermission('queue:create') ? t('archives.permission.noAddToQueue') : t('archives.card.schedulePrint')}
|
|
title={!archive.file_path ? t('archives.card.noFileForReprint') : !hasPermission('queue:create') ? t('archives.permission.noAddToQueue') : t('archives.card.schedulePrint')}
|
|
|
>
|
|
>
|
|
|
<Calendar className="w-3 h-3 flex-shrink-0" />
|
|
<Calendar className="w-3 h-3 flex-shrink-0" />
|
|
|
- <span className="hidden sm:inline">{t('archives.card.schedule')}</span>
|
|
|
|
|
|
|
+ <span className="hidden sm:inline truncate">{t('archives.card.schedule')}</span>
|
|
|
</Button>
|
|
</Button>
|
|
|
<Button
|
|
<Button
|
|
|
variant="secondary"
|
|
variant="secondary"
|
|
@@ -1069,7 +1069,7 @@ function ArchiveCard({
|
|
|
<Button
|
|
<Button
|
|
|
variant="primary"
|
|
variant="primary"
|
|
|
size="sm"
|
|
size="sm"
|
|
|
- className="flex-1 min-w-0"
|
|
|
|
|
|
|
+ className="flex-1 min-w-0 overflow-hidden"
|
|
|
onClick={() => {
|
|
onClick={() => {
|
|
|
const filename = archive.print_name || archive.filename || 'model';
|
|
const filename = archive.print_name || archive.filename || 'model';
|
|
|
openInSlicerWithToken(archive.id, filename, 'file', preferredSlicer);
|
|
openInSlicerWithToken(archive.id, filename, 'file', preferredSlicer);
|
|
@@ -1077,7 +1077,7 @@ function ArchiveCard({
|
|
|
title={t('archives.card.openInBambuStudioToSlice')}
|
|
title={t('archives.card.openInBambuStudioToSlice')}
|
|
|
>
|
|
>
|
|
|
<ExternalLink className="w-3 h-3 flex-shrink-0" />
|
|
<ExternalLink className="w-3 h-3 flex-shrink-0" />
|
|
|
- <span className="hidden sm:inline">{t('archives.card.slice')}</span>
|
|
|
|
|
|
|
+ <span className="hidden sm:inline truncate">{t('archives.card.slice')}</span>
|
|
|
</Button>
|
|
</Button>
|
|
|
)}
|
|
)}
|
|
|
<Button
|
|
<Button
|