website-xp-phone 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "website-xp-phone",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "author": "Kirill <kine> Nevzorov <akinevz@outlook.com>",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -45,4 +45,4 @@
45
45
  "overrides": {
46
46
  "lodash": "^4.17.21"
47
47
  }
48
- }
48
+ }
@@ -23,7 +23,7 @@
23
23
  /* Reset XP.css window styling overrides */
24
24
  .window {
25
25
  margin-bottom: var(--gap-size);
26
- min-width: 768px;
26
+ min-width: min(768px, 100%);
27
27
  max-width: 100%;
28
28
  box-sizing: border-box;
29
29
  }
@@ -472,7 +472,7 @@ export const Section = (props: SectionProps) => {
472
472
  }, [shouldOpenFromLink]);
473
473
 
474
474
  const windowContent = (
475
- <div className={`window ${className || ""}`}>
475
+ <div ref={inlineWindowRef} className={`window ${className || ""}`}>
476
476
  {hasHeading ? (
477
477
  <div className="title-bar">
478
478
  <div className="title-bar-text">{heading}</div>
@@ -503,9 +503,7 @@ export const Section = (props: SectionProps) => {
503
503
 
504
504
  return (
505
505
  <>
506
- {!isMinimized && !isMaximized && (
507
- <div ref={inlineWindowRef}>{windowContent}</div>
508
- )}
506
+ {!isMinimized && !isMaximized && windowContent}
509
507
  {!isMinimized &&
510
508
  isMaximized &&
511
509
  typeof document !== "undefined" &&