Skip to content

Commit

Permalink
Changed panel layouts for better readability for responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
HarmlessHarm committed Nov 20, 2023
1 parent 769e24c commit 9302537
Showing 1 changed file with 41 additions and 31 deletions.
72 changes: 41 additions & 31 deletions src/views/UserContent/Campaigns/RunCampaign.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,51 +92,61 @@
/>
</hk-pane>
</Splitpanes>
<Splitpanes v-else-if="container.width >= lg" class="default-theme">
<Pane :size="paneSize('left')" min-size="20">
<Splitpanes horizontal>
<hk-pane :size="paneSize('left-top')">
<SoundBoard />
</hk-pane>
<hk-pane v-if="!campaign.private" :size="paneSize('left-bottom')" min-size="20">
<Share :campaign="campaign" />
</hk-pane>
</Splitpanes>
</Pane>
<Pane :size="paneSize('mid')" min-size="20">
<Splitpanes horizontal>
<hk-pane min-size="20">
<Encounters />
</hk-pane>
<hk-pane min-size="20">
<Players
:userId="user.uid"
:campaignId="campaignId"
:campaign="campaign"
:players="players"
/>
</hk-pane>
</Splitpanes>
</Pane>
<hk-pane :size="paneSize('right')" min-size="20">
<Resources />
</hk-pane>
</Splitpanes>
<Splitpanes v-else class="default-theme" horizontal>
<Pane>
<Pane size="60" min-size="20">
<Splitpanes>
<Pane v-if="container.width >= lg" :size="paneSize('left')" min-size="20">
<Splitpanes horizontal>
<hk-pane :size="paneSize('left-top')">
<SoundBoard />
</hk-pane>
<hk-pane v-if="!campaign.private" min-size="20">
<Share :campaign="campaign" />
</hk-pane>
</Splitpanes>
</Pane>
<hk-pane v-else>
<hk-pane size="50" min-size="20">
<Encounters />
</hk-pane>
<Pane v-if="container.width >= md" :size="paneSize('mid')" min-size="20">
<Splitpanes horizontal>
<hk-pane v-if="container.width >= lg" min-size="20">
<Encounters />
</hk-pane>
<hk-pane min-size="20">
<Players
:userId="user.uid"
:campaignId="campaignId"
:campaign="campaign"
:players="players"
/>
</hk-pane>
</Splitpanes>
</Pane>
<hk-pane v-if="container.width >= lg" :size="paneSize('right')" min-size="20">
<Resources />
<hk-pane size="50" min-size="20">
<Players
:userId="user.uid"
:campaignId="campaignId"
:campaign="campaign"
:players="players"
/>
</hk-pane>
</Splitpanes>
</Pane>
<hk-pane v-if="container.width < lg && container.height >= 780">
<hk-pane size="40" min-size="20" v-if="container.width < lg && container.height >= 780">
<Players
v-if="container.width < md"
:userId="user.uid"
:campaignId="campaignId"
:campaign="campaign"
:players="players"
/>
<Share :campaign="campaign" v-else />
<Share v-else-if="!campaign.private" :campaign="campaign" />
</hk-pane>
</Splitpanes>
</template>
Expand Down

0 comments on commit 9302537

Please sign in to comment.