Skip to content

Commit

Permalink
responsive on last 2
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperknot committed Jan 31, 2024
1 parent 851019e commit 864d0da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/assets/support_plans.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ pricingSlider.on('update', function (values, _) {
tooltip.classList.remove('last')

if (document.documentElement.clientWidth < 500) {
if (value === 0) {
if (value <= 1) {
tooltip.classList.add('first')
}
if (value === priceNumbers.length - 1) {
if (value >= priceNumbers.length - 2) {
tooltip.classList.add('last')
}
}
Expand Down

0 comments on commit 864d0da

Please sign in to comment.