@knowcode/doc-builder 1.4.0 → 1.4.1

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/CHANGELOG.md CHANGED
@@ -5,6 +5,21 @@ All notable changes to @knowcode/doc-builder will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.4.1] - 2025-07-20
9
+
10
+ ### Fixed
11
+ - **Critical CSS layout fix** - Content no longer appears too far right when sidebar is hidden
12
+ - Removed incorrect `margin-left: var(--sidebar-width)` from `.content` class
13
+ - Fixed responsive layout issues where content had excessive right spacing
14
+ - Simplified responsive styles to match original working version
15
+ - Fixed mobile padding to use single value `var(--space-4)` instead of directional padding
16
+
17
+ ### Technical Details
18
+ - Content now uses flexbox `flex: 1` without margin-left
19
+ - Removed unnecessary `transition: margin-left` from content
20
+ - Mobile styles simplified to only adjust padding, no margin overrides needed
21
+ - Layout now properly responds when sidebar is hidden on mobile/tablet
22
+
8
23
  ## [1.4.0] - 2025-07-20
9
24
 
10
25
  ### Added
@@ -687,11 +687,9 @@ pre code {
687
687
 
688
688
  .content {
689
689
  flex: 1;
690
- margin-left: var(--sidebar-width);
691
690
  padding: var(--space-6) var(--space-8);
692
691
  overflow-y: auto;
693
692
  background: var(--color-bg-default);
694
- transition: margin-left var(--duration-normal);
695
693
  }
696
694
 
697
695
  .content-inner {
@@ -1029,9 +1027,7 @@ tr:hover {
1029
1027
  }
1030
1028
 
1031
1029
  .content {
1032
- margin-left: 0 !important;
1033
1030
  padding: var(--space-6) var(--space-4);
1034
- max-width: 100%;
1035
1031
  }
1036
1032
 
1037
1033
  .menu-toggle {
@@ -1671,9 +1667,7 @@ tr:hover {
1671
1667
  }
1672
1668
 
1673
1669
  .content {
1674
- margin-left: 0 !important;
1675
- padding: var(--space-6) var(--space-4);
1676
- max-width: 100%;
1670
+ padding: var(--space-4);
1677
1671
  }
1678
1672
 
1679
1673
  .content-inner {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowcode/doc-builder",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Reusable documentation builder for markdown-based sites with Vercel deployment support",
5
5
  "main": "index.js",
6
6
  "bin": {