diff --git a/app.py b/app.py index cd04ccd..af917e5 100644 --- a/app.py +++ b/app.py @@ -459,12 +459,12 @@ def parse_query(query_override: str = None): if len(result) > 17: return result - result = "" - result += search() + result = search() + # Remove the closing from search() so we can add dictionary content inside .responses + if result.endswith(""): + result = result[:-6] # Remove last result += "" - result += ( - "

1828 Webster Definitions

Click on the word to get the definition." - ) + result += "

1828 Webster Definitions

Click on the word to get the definition.

" split_query = query.replace(",", " ").split(" ") if len(split_query) > 20: return "Your Query is too long. 20 Words or less." @@ -480,9 +480,7 @@ def parse_query(query_override: str = None): result += "
" + definition + "
" logging.debug(f"parse_query.define = '{word}'") result += "" - result += "
" - # result += search() - #logging.debug(f"parse_query.search = '{result}'") + result += "" return result diff --git a/styles/header.css b/styles/header.css index c7a89f0..28368d7 100644 --- a/styles/header.css +++ b/styles/header.css @@ -103,6 +103,25 @@ body { font-weight: 500; } +/* Dictionary Section */ +.dictionary-section { + margin: var(--space-xl) 0 var(--space-lg) 0; +} + +.dictionary-section h3 { + font-family: var(--font-ui); + font-size: 1.5rem; + color: var(--color-text-primary); + margin-bottom: var(--space-sm); +} + +.dictionary-section p { + font-family: var(--font-ui); + font-size: 0.95rem; + color: var(--color-text-secondary); + margin: 0; +} + /* Links */ a { color: var(--color-link);