Skip to content

Commit

Permalink
fix: align tab title with content on firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Sep 6, 2024
1 parent 0d92652 commit 3e2ebb1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/frontend/src/routes/edit.$reportId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,17 @@ const WithReport = ({ report }: { report: Report }) => {
document.getElementById("root")!.scrollTo(0, 0);
};

// @ts-ignore
const isChrome = !!window.chrome;

const options = [
{
id: "info",
label: "RDV",
className: css({
position: "absolute",
left: "max(calc((100vw - 800px) / 2 + 8px), 16px)",
// there is a difference in padding between chrome and other browsers due to scrollbar width (i guess)
left: isChrome ? "max(calc((100vw - 800px) / 2 + 8px), 16px)" : "max(calc((100vw - 800px) / 2 + 16px), 16px)",
}),
},
{
Expand Down

0 comments on commit 3e2ebb1

Please sign in to comment.