Skip to content

Commit 8979426

Browse files
committed
4.0.4 - small improvements
1 parent a4fd93e commit 8979426

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "remix-development-tools",
33
"description": "Remix development tools - a set of tools for developing/debugging Remix.run apps",
44
"author": "Alem Tuzlak",
5-
"version": "4.0.3",
5+
"version": "4.0.4",
66
"license": "MIT",
77
"keywords": [
88
"remix",

src/client/RemixDevTools.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ const DevTools = ({ plugins: pluginArray }: RemixDevToolsProps) => {
3737
useDevServerConnection();
3838
useOpenElementSource();
3939
useListenToRouteChange();
40+
41+
const { setPersistOpen } = usePersistOpen();
4042
const url = useLocation().search;
4143
const { detachedWindowOwner, isDetached, setDetachedWindowOwner } = useDetachedWindowControls();
4244
const { settings } = useSettingsContext();
@@ -45,7 +47,7 @@ const DevTools = ({ plugins: pluginArray }: RemixDevToolsProps) => {
4547
const [isOpen, setIsOpen] = useState(isDetached || settings.defaultOpen || persistOpen);
4648
const leftSideOriented = position.includes("left");
4749
const plugins = pluginArray?.map((plugin) => (typeof plugin === "function" ? plugin() : plugin));
48-
const debounceSetOpen = useDebounce(() => setIsOpen(!isOpen), 100);
50+
const debounceSetOpen = useDebounce(() => {setIsOpen(!isOpen); setPersistOpen(!isOpen)}, 100);
4951
useAttachBodyListener("keydown", (e: any) => {
5052

5153
if(isOpen && e.key === "Escape"){
@@ -55,6 +57,7 @@ const DevTools = ({ plugins: pluginArray }: RemixDevToolsProps) => {
5557
debounceSetOpen();
5658
}
5759
});
60+
5861
if (settings.requireUrlFlag && !url.includes(settings.urlFlag)) return null;
5962
// If the dev tools are detached, we don't want to render the main panel
6063
if (detachedWindowOwner) {

src/client/tabs/SettingsTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ export const SettingsTab = () => {
2929
</Checkbox>
3030
<Checkbox
3131
id="requireUrlFlag"
32-
hint="Allows you to only show rdt when there is a flag in the URL search params set."
32+
hint={`Allows you to only show rdt when there is a flag in the URL search params set. (${settings.urlFlag}=true)`}
3333
onChange={() => setSettings({ requireUrlFlag: !settings.requireUrlFlag })}
3434
value={settings.requireUrlFlag}
3535
>
36-
Show dev tools only when URL flag is set
36+
Show dev tools only when URL flag is set ?{settings.urlFlag}=true
3737
</Checkbox>
3838
<Checkbox
3939
id="hideUntilHover"

src/input.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Prevent `sub` and `sup` elements from affecting the line height in all browsers.
169169
/* 1 */
170170
line-height: inherit;
171171
/* 1 */
172-
color: inherit;
172+
color: initial;
173173
/* 1 */
174174
margin: 0;
175175
/* 2 */

0 commit comments

Comments
 (0)