Skip to content

Commit

Permalink
interim
Browse files Browse the repository at this point in the history
  • Loading branch information
kiley-mitti committed May 7, 2024
1 parent 7890d19 commit c190b9a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
display: flex;
align-items: center;
padding: 12px 20px;
justify-content: center;
justify-content: var(--ruler-text-placement);
}

.ruler-time.has-date-scroll {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export class RuxRuler {
//Set Last Column
let unitOfTime = 60
const end = unitOfTime * this.firstNewDay! + 2
console.log(prevDay)

return (
<span
Expand All @@ -95,14 +96,13 @@ export class RuxRuler {
timePattern = /^00:.+$/

shouldShowDate(time: string) {
if (this.interval !== 'hour') {
if (!['hour', 'minute'].includes(this.interval)) {
return false
}

if (!this.showStartOfDay) {
return false
}

return this.timePattern.test(time)
}

Expand All @@ -129,7 +129,9 @@ export class RuxRuler {
),
'has-date-scroll':
(this.showStartOfDay &&
this.interval === 'hour') ||
['hour', 'minute'].includes(
this.interval
)) ||
false,
}}
style={{
Expand Down Expand Up @@ -157,8 +159,7 @@ export class RuxRuler {
}
)}
{this.showStartOfDay &&
this.interval === 'hour' &&
this.firstNewDay
['hour', 'minute'].includes(this.interval)
? this.getPartialDay()
: null}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@
}

--grid-line-color: transparent;
--ruler-text-placement: start;
}

:host([show-grid]) {
--grid-line-color: var(--color-background-base-default);
--ruler-text-placement: center;
}

.rux-timeline {
Expand Down

0 comments on commit c190b9a

Please sign in to comment.