File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,8 @@ def __rich_console__(
144
144
Padding (self .renderable , _padding ) if any (_padding ) else self .renderable
145
145
)
146
146
style = console .get_style (self .style )
147
- border_style = style + console .get_style (self .border_style )
147
+ partial_border_style = console .get_style (self .border_style )
148
+ border_style = style + partial_border_style
148
149
width = (
149
150
options .max_width
150
151
if self .width is None
@@ -200,7 +201,7 @@ def align_text(
200
201
201
202
title_text = self ._title
202
203
if title_text is not None :
203
- title_text .stylize_before (border_style )
204
+ title_text .stylize_before (partial_border_style )
204
205
205
206
child_width = (
206
207
width - 2
@@ -249,7 +250,7 @@ def align_text(
249
250
250
251
subtitle_text = self ._subtitle
251
252
if subtitle_text is not None :
252
- subtitle_text .stylize_before (border_style )
253
+ subtitle_text .stylize_before (partial_border_style )
253
254
254
255
if subtitle_text is None or width <= 4 :
255
256
yield Segment (box .get_bottom ([width - 2 ]), border_style )
You can’t perform that action at this time.
0 commit comments