Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4723 implement redesign of model from equation component #4770

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
</tera-drilldown-header>
<main class="flex overflow-hidden h-full">
<slot name="sidebar" />
<slot name="content" />
asylves1 marked this conversation as resolved.
Show resolved Hide resolved
<tera-columnar-panel class="flex-1">
<template v-for="(tab, index) in tabs" :key="index">
<!--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<Panel :toggleable="isToggleable">
<Panel :toggleable="isToggleable" :class="useDefaultStyle ? 'asset-panel' : ''">
asylves1 marked this conversation as resolved.
Show resolved Hide resolved
<template #header>
<section>
<slot name="header" />
Expand Down Expand Up @@ -51,12 +51,16 @@ defineProps({
isToggleable: {
type: Boolean,
default: true
},
useDefaultStyle: {
type: Boolean,
default: true
}
});
</script>

<style scoped>
.p-panel {
.asset-panel {
border: 1px solid var(--surface-border-light);
border-radius: var(--border-radius-medium);
border-left: 0.5rem solid var(--primary-color);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
<template>
<tera-slider :content-width="contentWidth" :tab-width="tabWidth" :direction="direction" :is-open="isOpen">
<tera-slider
:content-width="contentWidth"
:tab-width="tabWidth"
:min-tab-width="minTabWidth"
:direction="direction"
:is-open="isOpen"
>
<template v-slot:content>
<aside @scroll="onScroll">
<header :class="{ shadow: isScrolled }">
Expand Down Expand Up @@ -60,6 +66,10 @@ defineProps({
type: String,
default: '40px'
},
minTabWidth: {
type: String,
default: '40px'
},
// slider-panel props
header: {
type: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<aside
:class="`slider ${isOpen ? 'open' : 'closed'} ${direction}`"
:style="{ width: isOpen ? contentWidth : tabWidth }"
:style="{ width: isOpen ? contentWidth : tabWidth, minWidth: minTabWidth }"
>
<div class="slider-content-container" :style="{ width: isOpen ? contentWidth : 0 }">
<section class="slider-content" :style="sidePanelContentStyle">
Expand Down Expand Up @@ -36,6 +36,10 @@ const props = defineProps({
tabWidth: {
type: String,
default: '50px'
},
minTabWidth: {
type: String,
default: '50px'
asylves1 marked this conversation as resolved.
Show resolved Hide resolved
}
});

Expand Down
Loading
Loading