mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 16:22:59 +10:00
fix bug with bullet points not appearing properly
This commit is contained in:
@ -26,10 +26,9 @@ body {
|
||||
font-family: 'Montserrat', sans-serif;
|
||||
}
|
||||
|
||||
ul li {
|
||||
list-style: disc;
|
||||
margin-left: 1em;
|
||||
padding: 0;
|
||||
ul:not(.list-none) li:before {
|
||||
content: '●';
|
||||
padding-right: 6px;
|
||||
}
|
||||
|
||||
input[type='range']::-moz-range-thumb {
|
||||
|
||||
@ -3,8 +3,8 @@ import React, { useRef } from 'react';
|
||||
const TabBar = ({ tabs, currentTab, setCurrentTab }) => {
|
||||
const tabsRef = useRef(null);
|
||||
|
||||
const scrollBy = x => {
|
||||
const index = tabs.findIndex(tab => tab.key === currentTab);
|
||||
const scrollBy = (x) => {
|
||||
const index = tabs.findIndex((tab) => tab.key === currentTab);
|
||||
tabsRef.current.scrollLeft += x;
|
||||
|
||||
if (x < 0 && index > 0) {
|
||||
@ -25,8 +25,8 @@ const TabBar = ({ tabs, currentTab, setCurrentTab }) => {
|
||||
<i className="material-icons">chevron_left</i>
|
||||
</div>
|
||||
|
||||
<ul id="tabs" ref={tabsRef} className="flex overflow-x-scroll">
|
||||
{tabs.map(tab =>
|
||||
<ul id="tabs" ref={tabsRef} className="flex overflow-x-scroll list-none">
|
||||
{tabs.map((tab) =>
|
||||
currentTab === tab.key ? (
|
||||
<li key={tab.key} className="mx-1 list-none">
|
||||
<div className="whitespace-no-wrap bg-gray-700 text-white rounded-md text-sm py-2 px-6 font-medium">
|
||||
|
||||
Reference in New Issue
Block a user