Skip to content

Commit

Permalink
Unstack config menu
Browse files Browse the repository at this point in the history
* Unstack config menu
  • Loading branch information
petrkucerak authored Feb 21, 2024
1 parent 5542130 commit 3f7b130
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/utils/fontsize-controler.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useState } from "react";
"use client";
import { useEffect, useState } from "react";

export default function FontSizeControler({ titleClass, textClass }) {
// const [textSize, setTextSize] = useState(1.125);
Expand All @@ -10,15 +11,16 @@ export default function FontSizeControler({ titleClass, textClass }) {
let textLine = 1.75;

return (
<div className="z-100 bg-white dark:bg-black sticky bottom-0 h-12 flex justify-center items-center">
<div
className={`z-100 bg-white dark:bg-black h-12 flex justify-center items-center`}
>
<button
className="mr-4 text-lg font-bold"
title="Zmenšit text"
onClick={() => {
titleSize -= 0.25;
textSize -= 0.25;
textLine -= 0.25;

const titles = document.querySelectorAll(`.${titleClass}`);
const texts = document.querySelectorAll(`.${textClass}`);

Expand Down

0 comments on commit 3f7b130

Please sign in to comment.