Skip to content

Commit

Permalink
🐛 full kumato mode in mithril under react
Browse files Browse the repository at this point in the history
Co-authored-by: Marite Guerrieri <marite.guerrieri@somenergia.coop>
  • Loading branch information
vokimon and MariteSomEnergia committed Jun 23, 2023
1 parent dc315bb commit d0d7855
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions tomatic/ui/src/containers/MithrilStyler.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import PersonStyles from '../mithril/components/personstyles'
import customStyle from '../mithril/style.styl'
import Tomatic from '../services/tomatic'

Tomatic.onKumatoChanged.push(() => m.redraw())

css.addLayoutStyles()
css.addTypography()
console.log('customStyle', customStyle)
Expand Down
2 changes: 1 addition & 1 deletion tomatic/ui/src/mithril/components/callinfo_style.styl
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ body
.alert-case
color: red

#tomatic > .pe-dark-tone
body #tomatic .pe-dark-tone
background: #373721
color: #d9dfdf
min-height: 100%
Expand Down
4 changes: 1 addition & 3 deletions tomatic/ui/src/mithril/components/callinfopage.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ module.exports = (function () {

var typeOfSearch = function () {
return m(
'select',
'select.select-search#search-by',
{
id: 'search-by',
className: '.select-search',
onchange: function () {
CallInfo.search_by = document.getElementById('search-by').value
},
Expand Down
2 changes: 1 addition & 1 deletion tomatic/ui/src/mithril/style.styl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ body {
color: #511;
background-color: #eee;
}
body.pe-dark-theme {
body .pe-dark-theme {
color: #bbb;
background-color: #242;
}
Expand Down

0 comments on commit d0d7855

Please sign in to comment.