mirror of
https://github.com/immich-app/immich.git
synced 2025-07-31 15:08:44 -04:00
disable thumbhash for local assets
This commit is contained in:
parent
f92db09205
commit
60f396b599
@ -73,16 +73,34 @@ class ThumbnailTile extends ConsumerWidget {
|
||||
tag: '${asset?.heroTag ?? ''}_$heroIndex',
|
||||
child: Thumbnail.fromBaseAsset(
|
||||
asset: asset,
|
||||
thumbhashMode: isScrubbing ? ThumbhashMode.only : ThumbhashMode.enabled,
|
||||
thumbhashMode: asset != null && asset.hasLocal
|
||||
? ThumbhashMode.disabled
|
||||
: isScrubbing
|
||||
? ThumbhashMode.only
|
||||
: ThumbhashMode.enabled,
|
||||
),
|
||||
),
|
||||
),
|
||||
if (hasStack)
|
||||
Align(
|
||||
alignment: Alignment.topRight,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(right: 10.0, top: asset.isVideo ? 24.0 : 6.0),
|
||||
child: const _TileOverlayIcon(Icons.burst_mode_rounded),
|
||||
asset.isVideo
|
||||
? const Align(
|
||||
alignment: Alignment.topRight,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
right: 10.0,
|
||||
top: 24.0,
|
||||
),
|
||||
child: _TileOverlayIcon(Icons.burst_mode_rounded),
|
||||
),
|
||||
)
|
||||
: const Align(
|
||||
alignment: Alignment.topRight,
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(
|
||||
right: 10.0,
|
||||
top: 6.0,
|
||||
),
|
||||
child: _TileOverlayIcon(Icons.burst_mode_rounded),
|
||||
),
|
||||
),
|
||||
if (asset != null && asset.isVideo)
|
||||
|
Loading…
x
Reference in New Issue
Block a user