Skip to content

Commit f3ee03d

Browse files
authored
PDF Toolbar: Don't collapse in case no breakpoint is set (#12)
This fixes an issue, where the PDF viewer on the knowledge page collapsed the buttons even though no breakpoint was set, and it shouldn't do so.
1 parent 8568b80 commit f3ee03d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/pdf-toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ const PdfToolbar: React.FC<PdfToolbarProps> = ({
153153
)}
154154
</div>
155155

156-
{collapseButtonsBreakpoint > 0 && width > collapseButtonsBreakpoint ? (
156+
{width >= collapseButtonsBreakpoint ? (
157157
<PdfToolbarTools
158158
onDownload={onDownload}
159159
onPrint={onPrint}

0 commit comments

Comments
 (0)