This commit is contained in:
Víctor Losada Hernández
2026-09-23 23:29:17 +02:00
parent ae57a7a14e
commit 1be4a8727f
4 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ const Editor = forwardRef(
useEffect(()=>{ if(liveScroll) brewJump(currentEditorViewPageNum, false); }, [currentEditorViewPageNum, liveScroll]); useEffect(()=>{ if(liveScroll) brewJump(currentEditorViewPageNum, false); }, [currentEditorViewPageNum, liveScroll]);
useEffect(()=>{ if(liveScroll) brewJump(currentEditorCursorPageNum, false); }, [currentEditorCursorPageNum, liveScroll]); useEffect(()=>{ if(liveScroll) brewJump(currentEditorCursorPageNum, false); }, [currentEditorCursorPageNum, liveScroll]);
const handleFormatCode = () => { const handleFormatCode = ()=>{
codeEditor.current?.formatCode(); codeEditor.current?.formatCode();
}; };
@@ -35,22 +35,22 @@ const Snippetbar = createReactClass({
displayName : 'SnippetBar', displayName : 'SnippetBar',
getDefaultProps : function() { getDefaultProps : function() {
return { return {
brew : {}, brew : {},
view : 'text', view : 'text',
onViewChange : ()=>{}, onViewChange : ()=>{},
onInject : ()=>{}, onInject : ()=>{},
onToggle : ()=>{}, onToggle : ()=>{},
showEditButtons : true, showEditButtons : true,
renderer : 'legacy', renderer : 'legacy',
undo : ()=>{}, undo : ()=>{},
redo : ()=>{}, redo : ()=>{},
historySize : ()=>{}, historySize : ()=>{},
foldCode : ()=>{}, foldCode : ()=>{},
unfoldCode : ()=>{}, unfoldCode : ()=>{},
formatCode : ()=>{}, formatCode : ()=>{},
cursorPos : {}, cursorPos : {},
themeBundle : [], themeBundle : [],
updateBrew : ()=>{} updateBrew : ()=>{}
}; };
}, },
@@ -6,24 +6,24 @@
--activeTriggerColor : inherit; --activeTriggerColor : inherit;
--menuColor : #DDDDDD; --menuColor : #DDDDDD;
@menuHeight : 25px; @menuHeight : 25px;
position : relative; position : relative;
display : flex; display : flex;
flex-wrap : wrap-reverse; flex-wrap : wrap-reverse;
reading-flow : flex-visual; justify-content : space-between;
justify-content : space-between; height : auto;
height : auto; font-family : 'Open Sans', sans-serif;
color : black; font-size : 0.65rem;
background-color : #DDDDDD; font-weight : 800;
font-size : .65rem; color : black;
font-family: 'Open Sans', sans-serif; text-transform : uppercase;
text-transform: uppercase; background-color : #DDDDDD;
font-weight: 800; reading-flow : flex-visual;
.editors { .editors {
display : flex; display : flex;
justify-content : flex-end; justify-content : flex-end;
min-width : 275px; //must be controlled every time an item is added, must be hardcoded for the wrapping as it is applied min-width : 275px; //must be controlled every time an item is added, must be hardcoded for the wrapping as it is applied
font-size: .85rem; font-size : 0.85rem;
&:only-child {min-width : unset; margin-left : auto;} &:only-child {min-width : unset; margin-left : auto;}
reading-order : 2; reading-order : 2;
@@ -211,7 +211,7 @@
} }
} }
@container editor (width < 841px) { @container editor (width < 841px) {
.snippetBar { .snippetBar {
.editors { .editors {
flex : 1; flex : 1;
justify-content : space-between; justify-content : space-between;
+2 -2
View File
@@ -216,8 +216,8 @@
} }
a { a {
color:black; color : black;
text-underline-offset:0.2em; text-underline-offset : 0.2em;
} }
} }