mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: distance of segment label overlapsed scrubber label (#22043)
This commit is contained in:
parent
9e0553e0c4
commit
87a172ab0c
1 changed files with 2 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ class Scrubber extends ConsumerStatefulWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
List<_Segment> _buildSegments({required List<Segment> layoutSegments, required double timelineHeight}) {
|
List<_Segment> _buildSegments({required List<Segment> layoutSegments, required double timelineHeight}) {
|
||||||
const double offsetThreshold = 20.0;
|
const double offsetThreshold = 40.0;
|
||||||
|
|
||||||
final segments = <_Segment>[];
|
final segments = <_Segment>[];
|
||||||
if (layoutSegments.isEmpty || layoutSegments.first.bucket is! TimeBucket) {
|
if (layoutSegments.isEmpty || layoutSegments.first.bucket is! TimeBucket) {
|
||||||
|
|
@ -390,7 +390,7 @@ class _SegmentWidget extends StatelessWidget {
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return IgnorePointer(
|
return IgnorePointer(
|
||||||
child: Container(
|
child: Container(
|
||||||
margin: const EdgeInsets.only(right: 12.0),
|
margin: const EdgeInsets.only(right: 36.0),
|
||||||
child: Material(
|
child: Material(
|
||||||
color: context.colorScheme.surface,
|
color: context.colorScheme.surface,
|
||||||
borderRadius: const BorderRadius.all(Radius.circular(16.0)),
|
borderRadius: const BorderRadius.all(Radius.circular(16.0)),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue