Skip to content

Commit eed180e

Browse files
committed
Dark mode and responsive fixes
1 parent 45aff62 commit eed180e

5 files changed

Lines changed: 6 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ All notable changes to this project will be documented in this file.
2424
- "Top referrers" and "Search terms" breakdowns are rendered side by side with other "Sources" tabs instead of replacing them
2525
- Improved top bar and top stats UI/styling
2626
- Moved graph interval picker, export button, imported data toggle and notices out of the graph and into a new options menu in the top bar
27+
- Standardised and improved segment and filter modals styling
2728

2829
### Fixed
2930

assets/js/dashboard/components/modal-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function ModalLayout({
2121
allowScroll={allowScroll}
2222
onClose={onClose}
2323
>
24-
<div className="flex flex-col gap-6 py-2">
24+
<div className="flex flex-col gap-6 p-1 md:py-2 md:px-0">
2525
<div className="flex items-center justify-between gap-3">
2626
<h1 className="text-base font-bold leading-tight dark:text-gray-100">
2727
{title}

assets/js/dashboard/segments/segment-modals.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { Role, UserContextValue, useUserContext } from '../user-context'
2727
import { useSiteContext } from '../site-context'
2828
import { Button, buttonClassName } from '../components/button'
2929

30-
const inModalPillClassName = '!shadow-none !bg-gray-100'
30+
const inModalPillClassName = '!shadow-none !bg-gray-100 dark:!bg-gray-750'
3131

3232
const inModalSectionLabelClassName = 'text-sm font-semibold dark:text-gray-100'
3333

assets/js/dashboard/stats/modals/filter-modal-group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function FilterModalGroup({
3939
<>
4040
<div>
4141
{showTitle && (
42-
<div className="text-sm font-medium">
42+
<div className="text-sm font-medium text-gray-800 dark:text-gray-200">
4343
{formattedFilters[filterGroup]}
4444
</div>
4545
)}

lib/plausible_web/components/generic.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ defmodule PlausibleWeb.Components.Generic do
4444
"border border-gray-300 dark:border-gray-800 text-red-600 bg-white dark:bg-gray-800 hover:text-red-700 dark:hover:text-red-400 dark:text-red-500 active:text-red-800 disabled:text-red-700/40 disabled:hover:shadow-none dark:disabled:text-red-500/35 dark:disabled:bg-gray-800",
4545
"ghost" =>
4646
"border border-transparent text-gray-700 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100 hover:bg-gray-100 dark:hover:bg-gray-800 hover:border-gray-100 dark:hover:border-gray-800 disabled:text-gray-500 disabled:dark:text-gray-600 disabled:hover:bg-transparent disabled:hover:border-transparent",
47-
"icon" => "border border-transparent text-gray-400 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100"
47+
"icon" =>
48+
"border border-transparent text-gray-400 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100"
4849
}
4950

5051
@button_base_class "whitespace-nowrap truncate inline-flex items-center justify-center gap-x-2 text-sm font-medium rounded-md cursor-pointer disabled:cursor-not-allowed"

0 commit comments

Comments
 (0)