Skip to content

Commit

Permalink
feat(xo-6): update table container
Browse files Browse the repository at this point in the history
  • Loading branch information
CzechSebastian committed Dec 11, 2024
1 parent c670c8a commit b8b60a4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
8 changes: 0 additions & 8 deletions @xen-orchestra/web/src/components/pif/PifTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,6 @@ const selectRow = (rowId: XoPif['id']) => {

<style scoped lang="postcss">
.pif-table {
height: fit-content;
padding: 1.6rem;
margin: 0.8rem;
border: solid 0.1rem var(--color-neutral-border);
border-radius: 0.8rem;
background-color: var(--color-neutral-background-primary);
overflow-x: hidden;
.table-actions {
margin-top: 2.4rem;
display: flex;
Expand Down
16 changes: 15 additions & 1 deletion @xen-orchestra/web/src/pages/host/[id]/network.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<template>
<div class="host-network-view">
<PifTable :pifs @row-select="selectPif" />
<UiCard class="card">
<PifTable :pifs @row-select="selectPif" />
</UiCard>

<PifPanel v-if="selectedPif" :pif="selectedPif" />
<UiPanel v-else class="panel">
<VtsNoSelectionHero type="panel" />
Expand All @@ -14,6 +17,7 @@ import PifTable from '@/components/pif/PifTable.vue'
import { usePifStore } from '@/stores/xo-rest-api/pif.store'
import type { XoPif } from '@/types/xo/pif.type'
import VtsNoSelectionHero from '@core/components/state-hero/VtsNoSelectionHero.vue'
import UiCard from '@core/components/ui/card/UiCard.vue'
import UiPanel from '@core/components/ui/panel/UiPanel.vue'
import { computed, ref } from 'vue'
import { useRoute } from 'vue-router'
Expand All @@ -35,6 +39,16 @@ const selectPif = (id: XoPif['id']) => {
display: flex;
height: 100%;
.card {
display: flex;
flex-direction: column;
gap: 4rem;
margin: 0.8rem;
border: solid 0.1rem var(--color-neutral-border);
border-radius: 0.8rem;
overflow: hidden;
}
.panel {
width: 40rem;
border-top: none;
Expand Down

0 comments on commit b8b60a4

Please sign in to comment.