Skip to content

Commit

Permalink
initial layout and --ro-bind
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Aug 7, 2024
1 parent 000a433 commit f171aaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ function App() {
useEffect(() => {
// Wait for preferences to be loaded
if (!loaded) { return }
console.debug(`width: ${width}`)

const _mobile = width < 800
if (!preferences.saveInLocalStore && _mobile !== preferences.mobile) {
setPreferences({ ...preferences, mobile: _mobile })
}
}, [width])
}, [width, loaded])

// Setting up the editor and infoview
useEffect(() => {
Expand Down
6 changes: 3 additions & 3 deletions server/bubblewrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
ELAN_HOME=$(cd $1 && lake env printenv ELAN_HOME)

(exec bwrap\
--bind $1 /project \
--bind $ELAN_HOME /elan \
--bind /usr /usr \
--ro-bind $1 /project \
--ro-bind $ELAN_HOME /elan \
--ro-bind /usr /usr \
--dev /dev \
--proc /proc \
--symlink usr/lib /lib\
Expand Down

0 comments on commit f171aaf

Please sign in to comment.