Side panel width option

This commit is contained in:
Natsumi
2021-07-17 08:22:18 +12:00
parent 5e75460ce7
commit ca8f1e3e65
3 changed files with 23 additions and 8 deletions

View File

@@ -7655,6 +7655,7 @@ speechSynthesis.getVoices();
$app.data.worldAutoCacheGPSFilter = configRepository.getBool('VRCX_worldAutoCacheGPSFilter');
$app.data.autoSweepVRChatCache = configRepository.getBool('VRCX_autoSweepVRChatCache');
$app.data.vrBackgroundEnabled = configRepository.getBool('VRCX_vrBackgroundEnabled');
$app.data.asideWidth = configRepository.getInt('VRCX_asidewidth');
var saveOpenVROption = function () {
configRepository.setBool('openVR', this.openVR);
configRepository.setBool('openVRAlways', this.openVRAlways);
@@ -7775,6 +7776,10 @@ speechSynthesis.getVoices();
$app.data.vrBackgroundEnabled = false;
configRepository.setBool('VRCX_vrBackgroundEnabled', $app.data.vrBackgroundEnabled);
}
if (!configRepository.getInt('VRCX_asidewidth')) {
$app.data.asideWidth = 236;
configRepository.setInt('VRCX_asidewidth', $app.data.asideWidth);
}
if (!configRepository.getString('sharedFeedFilters')) {
var sharedFeedFilters = {
noty: {
@@ -13112,6 +13117,11 @@ speechSynthesis.getVoices();
return false;
};
$app.methods.setAsideWidth = function () {
document.getElementById('aside').style.width = this.asideWidth + 'px';
configRepository.setInt('VRCX_asidewidth', this.asideWidth);
};
$app = new Vue($app);
window.$app = $app;
}());