Skip to content

Commit

Permalink
show history text on flex panel hide/unhide button
Browse files Browse the repository at this point in the history
just a draft commit to show a possibility; collapse button with text
  • Loading branch information
ahmedhamidawan committed Dec 10, 2024
1 parent 39e38c9 commit f1e7117
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions client/src/components/Panels/FlexPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const sideClasses = computed(() => ({
@focusin="hoverToggle = true"
@mouseout="hoverToggle = false"
@focusout="hoverToggle = false">
<span class="vertical-text">History</span>
<FontAwesomeIcon v-if="side === 'left'" fixed-width icon="fa-chevron-left" />
<FontAwesomeIcon v-else icon="fa-chevron-right" fixed-width />
</button>
Expand All @@ -106,6 +107,7 @@ const sideClasses = computed(() => ({
show = true;
hoverToggle = false;
">
<span class="vertical-text">History</span>
<FontAwesomeIcon v-if="side === 'right'" fixed-width icon="fa-chevron-left" />
<FontAwesomeIcon v-else icon="fa-chevron-right" fixed-width />
</button>
Expand Down Expand Up @@ -167,6 +169,11 @@ $border-width: 6px;
transition: width 0.1s, left 0.1s, right 0.1s;
border-style: none;
.vertical-text {
transform: rotate(180deg);
text-orientation: mixed;
}
&:hover,
&.show,
&:focus {
Expand All @@ -192,6 +199,12 @@ $border-width: 6px;
border-bottom-right-radius: 0;
}
&.open {
.vertical-text {
writing-mode: vertical-rl;
}
}
&.closed {
--width: 0.75rem;
border-style: solid;
Expand All @@ -214,6 +227,10 @@ $border-width: 6px;
right: unset;
left: 0;
}
.vertical-text {
writing-mode: sideways-lr;
}
}
}
Expand Down

0 comments on commit f1e7117

Please sign in to comment.