dfdkflj
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""Modal for displaying files/URLs to access in web mode."""
|
||||
"""Modal for displaying files/url to access in web mode."""
|
||||
|
||||
from textual.screen import ModalScreen
|
||||
from textual.containers import Container, Vertical, Horizontal
|
||||
@@ -93,7 +93,7 @@ class AccessModal(ModalScreen):
|
||||
yield Label("[bold cyan]File:[/bold cyan]", classes="access-label")
|
||||
|
||||
# Display as clickable link using HTML link element for web mode
|
||||
# Rich link markup `[link=URL]` has parsing issues with URLs containing special chars
|
||||
# Rich link markup `[link=URL]` has parsing issues with url containing special chars
|
||||
# Instead, use the HTML link markup that Textual-serve renders as <a> tag
|
||||
# Format: [link=URL "tooltip"]text[/link] - the quotes help with parsing
|
||||
link_text = f'[link="{self.item_content}"]Open in Browser[/link]'
|
||||
|
||||
Reference in New Issue
Block a user