Skip to content

Commit

Permalink
Merge pull request #897 from WolframResearch/bugfix/align-chat-icons-…
Browse files Browse the repository at this point in the history
…to-cell-baseline

Bugfix: Align chat icons to cell baseline instead of centering vertically
  • Loading branch information
rhennigan authored Nov 9, 2024
2 parents 8f33d0a + acc3b7e commit 9937e58
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 9 deletions.
10 changes: 8 additions & 2 deletions Developer/Resources/WorkspaceStyles.wl
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Cell[
CellFrame -> 0,
CellFrameLabelMargins -> -15,
CellMargins -> { { 15, 15 }, { 5, 10 } },
FrameBoxOptions -> { BaselinePosition -> Baseline },
PaneBoxOptions -> { BaselinePosition -> Baseline },
Selectable -> False,
ShowCellBracket -> False,
CellFrameLabels -> {
Expand All @@ -79,7 +81,8 @@ Cell[
],
SingleEvaluation -> True
],
Background -> None
Background -> None,
CellBaseline -> Baseline
]
},
{ None, None }
Expand All @@ -96,7 +99,9 @@ Cell[
CellFrame -> 0,
CellFrameLabelMargins -> -5,
CellMargins -> { { 10, 15 }, { 25, 12 } },
FrameBoxOptions -> { BaselinePosition -> Baseline },
Initialization -> None,
PaneBoxOptions -> { BaselinePosition -> Baseline },
Selectable -> False,
ShowCellBracket -> False,
CellFrameLabels -> {
Expand All @@ -110,7 +115,8 @@ Cell[
],
SingleEvaluation -> True
],
Background -> None
Background -> None,
CellBaseline -> Baseline
],
None
},
Expand Down
2 changes: 1 addition & 1 deletion FrontEnd/Assets/Extensions/CoreExtensions.nb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Notebook[
Cell["Chatbook Core.nb Extensions", "Title"],
Cell[
StyleData["ChatStyleSheetInformation"],
TaggingRules -> <|"StyleSheetVersion" -> "1.5.2.3939536254"|>
TaggingRules -> <|"StyleSheetVersion" -> "1.5.2.3940147331"|>
],
Cell[
StyleData["NotebookAssistant`Text"],
Expand Down
2 changes: 1 addition & 1 deletion FrontEnd/StyleSheets/Chatbook.nb
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ Notebook[
],
Cell[
StyleData["ChatStyleSheetInformation"],
TaggingRules -> <|"StyleSheetVersion" -> "1.5.2.3939536254"|>
TaggingRules -> <|"StyleSheetVersion" -> "1.5.2.3940147331"|>
],
Cell[
StyleData["Text"],
Expand Down
16 changes: 11 additions & 5 deletions FrontEnd/StyleSheets/Wolfram/WorkspaceChat.nb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Notebook[
],
Cell[
StyleData["WorkspaceChatStyleSheetInformation"],
TaggingRules -> <|"WorkspaceChatStyleSheetVersion" -> "1.5.2.3939536254"|>
TaggingRules -> <|"WorkspaceChatStyleSheetVersion" -> "1.5.2.3940147331"|>
],
Cell[
StyleData[
Expand Down Expand Up @@ -118,12 +118,15 @@ Notebook[
SingleEvaluation -> True
]
],
Background -> None
Background -> None,
CellBaseline -> Baseline
]
},
{None, None}
},
CellFrameLabelMargins -> -15
CellFrameLabelMargins -> -15,
FrameBoxOptions -> {BaselinePosition -> Baseline},
PaneBoxOptions -> {BaselinePosition -> Baseline}
],
Cell[
StyleData["ChatOutput"],
Expand All @@ -148,14 +151,17 @@ Notebook[
SingleEvaluation -> True
]
],
Background -> None
Background -> None,
CellBaseline -> Baseline
],
None
},
{None, None}
},
CellFrameLabelMargins -> -5,
Background -> None
Background -> None,
FrameBoxOptions -> {BaselinePosition -> Baseline},
PaneBoxOptions -> {BaselinePosition -> Baseline}
],
Cell[
StyleData["ChatInputField"],
Expand Down

0 comments on commit 9937e58

Please sign in to comment.