Skip to content

Commit

Permalink
Merge pull request #2508 from CCAFS/A2-311-Timeline-visual-change
Browse files Browse the repository at this point in the history
♻️ refactor(Timeline): today visual changes
  • Loading branch information
MetalPrime authored Apr 17, 2024
2 parents 7349af3 + 8562f10 commit fa7fcd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions marlo-web/src/main/webapp/crp/css/home/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,10 @@ span.timelineControl:hover {
position: absolute;
top: 0;
left: 0;
width: 0.375rem;
width: 0.25rem;
height: 80%;
border: 2px dashed red;
border-width: 1px 2.5px;
border-width: 0.5px 1.5px;
}

.timebox {
Expand Down
2 changes: 1 addition & 1 deletion marlo-web/src/main/webapp/crp/js/home/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ function setDistances(weeks, startDate, endDate, isToday) {
const getWeekDistanceFromToday = getWeekBasedOnDay(today, weeks);
const getDayDistanceFromToday = (getAbsoluteDays(today, getFirstDateOfTheWeek(today))) / 7;
const currentHour = today.getHours();
const percentageCompletion = ((currentHour / 24)/7);
const percentageCompletion = ((currentHour / 24)/7)/2;

const widthContainer = $('.sectionMap').width();
const containerSize = widthContainer * 0.8;
Expand Down

0 comments on commit fa7fcd8

Please sign in to comment.