Skip to content

Commit

Permalink
fix: problem with minimal / play mode
Browse files Browse the repository at this point in the history
  • Loading branch information
BigJk committed Sep 24, 2024
1 parent a95b5ba commit 3668355
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions frontend/src/js/ui/views/session-grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,27 +318,29 @@ export default (): m.Component<SessionGridProps> => {
});
}),

m(
'div.flex.items-center.justify-center.o-50',
{
onclick: () => {
createEditGridButtonModal({
onSuccess: (element) => {
section.elements.push(element);
saveGrids();
state.playMode || state.minimalMode
? null
: m(
'div.flex.items-center.justify-center.o-50',
{
onclick: () => {
createEditGridButtonModal({
onSuccess: (element) => {
section.elements.push(element);
saveGrids();
},
});
},
});
},
style: { aspectRatio: '1 / 1', padding: 0 },
},
[
m(
'div.bg-black-05.br3.flex.items-center.justify-center.pointer.grow',
{ style: { height: '90%', width: '90%' } },
m(Icon, { icon: 'add-circle-outline', size: 3, className: '.o-30' }),
), //
],
), //
style: { aspectRatio: '1 / 1', padding: 0 },
},
[
m(
'div.bg-black-05.br3.flex.items-center.justify-center.pointer.grow',
{ style: { height: '90%', width: '90%' } },
m(Icon, { icon: 'add-circle-outline', size: 3, className: '.o-30' }),
), //
],
), //
],
),
]),
Expand Down Expand Up @@ -371,6 +373,7 @@ export default (): m.Component<SessionGridProps> => {
if (attrs.gridName) {
state.selectedGrid = decodeURIComponent(attrs.gridName);
state.minimalMode = true;
state.playMode = true;

console.log(attrs.gridName);

Expand Down

0 comments on commit 3668355

Please sign in to comment.