add scroll to js package

This commit is contained in:
Johannes
2023-06-09 14:44:46 +02:00
parent 92787722f0
commit 5180fa8608
3 changed files with 25 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ export default function MultipleChoiceMultiQuestion({
<div className="fb-mt-4">
<fieldset>
<legend className="fb-sr-only">Options</legend>
<div className="fb-relative fb-space-y-2 fb-rounded-md fb-bg-white">
<div className="fb-relative fb-space-y-2 fb-rounded-md fb-bg-white fb-max-h-[42vh] fb-overflow-y-auto fb-pr-2 fb-py-0.5">
{question.choices &&
question.choices.map((choice) => (
<label

View File

@@ -46,7 +46,7 @@ export default function MultipleChoiceSingleQuestion({
<div className="fb-mt-4">
<fieldset>
<legend className="fb-sr-only">Options</legend>
<div className="fb-relative fb-space-y-2 fb-rounded-md fb-bg-white">
<div className="fb-relative fb-space-y-2 fb-rounded-md fb-bg-white fb-max-h-[42vh] fb-overflow-y-auto fb-pr-2 fb-py-0.5">
{question.choices &&
question.choices.map((choice, idx) => (
<label

View File

@@ -1,3 +1,26 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Firefox */
* {
scrollbar-width: thin;
scrollbar-color: #e2e8f0;
}
/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
width: 8px;
border-radius: 99px;
}
*::-webkit-scrollbar-track {
background: #e2e8f0;
border-radius: 99px;
}
*::-webkit-scrollbar-thumb {
background-color: #cbd5e1;
border: 3px solid #cbd5e1;
border-radius: 99px;
}