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

🐛 Adding flex-direction to tab-content #90

Merged
merged 1 commit into from Jun 5, 2017
Merged

Conversation

mirshko
Copy link
Contributor

@mirshko mirshko commented Jun 4, 2017

This prevents long elements such as pre and code blocks that have a long string of text in them from overflowing off the container of the tab-content

Example

See example code block was set to width 100%

screenshot 2017-06-04 15 53 08

This should be restricted to the container width. To fix this I added the flex-direction column rule to the .tabs-content class.

Fix

This makes the code block the proper width and is constrained to the size of the tab-content container rather than overflowing

screenshot 2017-06-04 15 53 37

This prevents long elements such as pre and code blocks that have a long string of text in them from overflowing off the container of the tab-content
@rafaberaldo rafaberaldo merged commit a906dd4 into buefy:dev Jun 5, 2017
@rafaberaldo
Copy link
Member

Thanks a lot!

kikuomax added a commit to kikuomax/buefy that referenced this pull request Sep 15, 2023
* test(lib): update Pagination spec

- Updates the unit tests (spec) of `Pagination` so that they can work
  with `@vue/test-utils` V2 and breaking changes:
    - Corrects v-model bindings:
        - property: `current` → `modelValue`
        - event: `update:current` → `update:modelValue`
    - Awaits `wrapper.setProps` to make sure subsequent assertions
      verify the updated state.
    - Replaces a legacy async test case with an async function.
    - Replaces `wrapper.name()` with `wrapper.vm.$options.name` because
      `wrapper.name` no longer exists in `@vue/test-utils` V2.
    - Replaces the test on `wrapper.isVueInstance()` with presence of
      `wrapper.vm` because `wrapper.isVueInstance` no longer exists in
      `@vue/test-utils` V2.
    - Refreshes the snapshot. `<b-pagination-button>` is no longer a
      stub to test if `<b-icon>`s are inserted. This is necessary
      because `@vue/test-utils` V2 no longer renders the default slot in
      a stub. Besides, the new snapshot includes a new
      `<div class="control pagination-input">` element, though, this is
      due to the feature introduced after the old snapshot was taken.
      The snapshot won't match until we fix the issue
      ntohq#39.

issue ntohq#1

* test(lib): update PaginationButton spec

- Updates the unit tests (spec) of `PaginationButton` so that they can
  work with `@vue/test-utils` V2:
    - Awaits `wrapper.setProps` to make sure the subsequent assertion
      verifies the updated state.
    - Replaces `wrapper.name()` with `wrapper.vm.$options.name` because
      `wrapper.name` no longer exists in `@vue/test-utils` V2.
    - Replaces the test on `wrapper.isVueInstance()` with presence of
      `wrapper.vm` because `wrapper.isVueInstance` no longer exists in
      `@vue/test-utils` V2.
    - Replaces `propsData` option for `shallowMount` with `props`
      because `propsData` might be deprecated in the future.
    - Refreshes the snapshot. I did not find any problems in the new
      snapshot.

issue ntohq#1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants