Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 18 additions & 22 deletions PageComposer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,12 @@ export default function PageComposer({
</div>
)}
</div>
{/* Panel boczny po PRAWEJ */}
{/* Przyciski nawigacyjne */}
<div
style={{
position: "absolute",
right: 10,
top: "50%",
transform: "translateY(-50%)",
bottom: 10,
zIndex: 10,
display: "flex",
flexDirection: "column",
Expand Down Expand Up @@ -353,52 +352,49 @@ export default function PageComposer({
</span>
</button>
</div>
{/* Panel boczny (lewy) */}
<div
style={{
position: "absolute",
left: 10,
top: "50%",
transform: "translateY(-50%)",
bottom: 10,
zIndex: 10,
display: "flex",
flexDirection: "column",
gap: 0,
gap: 10,
}}
>
<button
onClick={onBack}
onClick={onClearLines}
style={{
background: "#222",
background: "#fff",
color: "#fff",
border: "2px solid #888",
border: "2px solid #ff0000",
borderRadius: "10%",
width: 30,
height: 30,
fontSize: 14,
cursor: "pointer",
marginBottom: 10,
boxShadow: "2px 2px 8px #0002",
outline: "none",
}}
title="Powrót do składu zecerskiego"
aria-label="Powrót do składu zecerskiego"
title="Wyczyść całą stronę"
aria-label="Wyczyść całą stronę"
>
<span
style={{
display: "inline-block",
transform: "rotate(180deg) translateY(2px)",
transform: "rotate(20deg) translateX(-5px) ",
}}
>
&#8594;
&#128465;
</span>
</button>
<button
onClick={onClearLines}
onClick={onBack}
style={{
background: "#fff",
background: "#222",
color: "#fff",
border: "2px solid #ff0000",
border: "2px solid #888",
borderRadius: "10%",
width: 30,
height: 30,
Expand All @@ -407,16 +403,16 @@ export default function PageComposer({
boxShadow: "2px 2px 8px #0002",
outline: "none",
}}
title="Wyczyść całą stronę"
aria-label="Wyczyść całą stronę"
title="Powrót do składu zecerskiego"
aria-label="Powrót do składu zecerskiego"
>
<span
style={{
display: "inline-block",
transform: "rotate(20deg) translateX(-5px) ",
transform: "rotate(180deg) translateY(2px)",
}}
>
&#128465;
&#8594;
</span>
</button>
</div>
Expand Down
8 changes: 5 additions & 3 deletions PrintModule.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,13 @@ export default function PrintModule({ lines, onBack }) {
</div>
</div>
</div>
{/* Przykładowy przycisk powrotu (możesz przenieść do bocznego panelu lub stopki) */}
{/* Przycisk powrotu */}
<button
onClick={onBack}
style={{
margin: "30px auto 0 auto",
position: "absolute",
left: 10,
bottom: 10,
background: "#222",
color: "#fff",
border: "2px solid #888",
Expand All @@ -194,7 +196,7 @@ export default function PrintModule({ lines, onBack }) {
cursor: "pointer",
boxShadow: "2px 2px 8px #0002",
outline: "none",
display: "block"
zIndex: 10,
}}
title="Powrót"
aria-label="Powrót"
Expand Down